Add github action to check for correct labels #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR Automation | |
on: | |
pull_request: {} | |
pull_request_target: | |
types: | |
- closed | |
branches: | |
- master | |
jobs: | |
check-labels: | |
# Act doesn't set a pull request number by default, so we skip if it's 0 | |
if: github.event.pull_request.number != 0 | |
name: Check labels | |
runs-on: ubuntu-latest | |
steps: | |
- uses: docker://agilepathway/pull-request-label-checker:v1.6.51 | |
with: | |
one_of: enhancement,feature,minor,change,breaking,major,bug,fix,patch,documentation,dependency | |
repo_token: ${{ secrets.GITHUB_TOKEN }} |