Skip to content

Commit e445260

Browse files
authored
add enforce-labels workflow (#359)
1 parent f2e3ece commit e445260

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/enforce-labels.yml

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+
on:
4+
workflow_call:
5+
pull_request:
6+
types: [labeled, unlabeled, opened, edited, synchronize]
7+
permissions:
8+
contents: read
9+
pull-requests: read
10+
jobs:
11+
enforce-label:
12+
name: EnforceLabel
13+
runs-on: ubuntu-22.04
14+
steps:
15+
- name: Enforce Label
16+
uses: yogevbd/enforce-label-action@a3c219da6b8fa73f6ba62b68ff09c469b3a1c024 # 2.2.2
17+
with:
18+
BANNED_LABELS: "hold,needs-qa"
19+
BANNED_LABELS_DESCRIPTION: "PRs with the hold or needs-qa labels cannot be merged"

0 commit comments

Comments
 (0)