Skip to content

Commit a9fedbe

Browse files
authored
Add CI job checking for bad PR labels (#211)
1 parent 19a5588 commit a9fedbe

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Enforce PR labels
2+
3+
permissions:
4+
contents: read
5+
on:
6+
pull_request:
7+
types: [labeled, unlabeled, opened, reopened, edited, synchronize]
8+
jobs:
9+
enforce-labels:
10+
name: Check for blocking labels
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 2
13+
steps:
14+
- uses: yogevbd/[email protected]
15+
with:
16+
# REQUIRED_LABELS_ANY: "bug,enhancement,skip-changelog"
17+
# REQUIRED_LABELS_ANY_DESCRIPTION: "Select at least one label ['bug','enhancement','skip-changelog']"
18+
BANNED_LABELS: "needs changelog,DO NOT MERGE"
19+
BANNED_LABELS_DESCRIPTION: "A PR should not be merged with `needs *` or `DO NOT MERGE` labels"

0 commit comments

Comments
 (0)