Skip to content

Commit

Permalink
cicd: add PR priority label requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Mar 21, 2024
1 parent 7e52275 commit 25fd49a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pr-priority-label.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Pull Request Has Priority Label
on:
pull_request:
types: [opened, labeled, unlabeled, synchronize]
jobs:
pr-priority-label:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
outputs:
status: {{ "${{ steps.check-labels.outputs.status }}" }}
steps:
- id: check-labels
uses: mheap/github-action-required-labels@v5
with:
mode: exactly
count: 1
labels: "priority:*"
use_regex: true
add_comment: true
message: "PRs require a priority label. Please add one."
exit_type: failure

0 comments on commit 25fd49a

Please sign in to comment.