This action prints the comment on an issue if the required labels are not added in the issue. The required actions can be added in the action input using comma seperated values
Required The name of the labels that are required.
Example:
labels: "Todo, Bug"
GitHub automatically creates a GITHUB_TOKEN
secret to use in your workflow. You can use the GITHUB_TOKEN
to authenticate in a workflow run.
Example:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
This action doesn't output anything
on:
issues:
types: [opened, edited]
jobs:
required_labels:
runs-on: ubuntu-latest
name: Required Labels
steps:
- name: Required Labels
uses: muhaddimu/required-labels@master
with:
labels: "Todo, Bug"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Facing any Issues or weird behavior(yes, action behave)? Feel free to open a new issue
License MIT