Skip to content

Commit

Permalink
Add milestone linter to PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
khewonc committed Aug 2, 2023
1 parent af31f4d commit 26b0bf8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/pr-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,9 @@ jobs:
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
valid-labels: 'bug, enhancement, documentation, tooling'
check-milestone:
name: Check Milestone
runs-on: ubuntu-latest
steps:
- if: github.event.pull_request.milestone == null && !contains(toJson(github.event.pull_request.labels.*.name), 'qa/skip-qa')
run: echo "::error::Missing milestone or \`qa/skip-qa\` label" && exit 1

0 comments on commit 26b0bf8

Please sign in to comment.