Skip to content

Commit 4596b8c

Browse files
authored
ci: add pr-priority-label job
1 parent e577e12 commit 4596b8c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Pull Request Has Priority Label
2+
on:
3+
pull_request:
4+
types: [opened, labeled, unlabeled, synchronize]
5+
jobs:
6+
pr-priority-label:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
outputs:
12+
status: ${{ steps.check-labels.outputs.status }}
13+
steps:
14+
- id: check-labels
15+
uses: mheap/github-action-required-labels@v5
16+
with:
17+
mode: exactly
18+
count: 1
19+
labels: "priority:*"
20+
use_regex: true
21+
add_comment: true
22+
message: "PRs require a priority label. Please add one."
23+
exit_type: failure

0 commit comments

Comments
 (0)