Skip to content

Commit 722edec

Browse files
ci: add workflow to block merging PRs with "status: blocked" label (#5955)
1 parent 6cbe3d5 commit 722edec

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/blocked-pr.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Blocked PR Check
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
types: [opened, reopened, synchronize, labeled, unlabeled]
8+
9+
permissions:
10+
contents: read
11+
pull-requests: read
12+
13+
jobs:
14+
not-blocked:
15+
name: not-blocked
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: 'Verify "status: blocked" label is not applied'
19+
uses: mheap/github-action-required-labels@v5
20+
with:
21+
mode: exactly
22+
count: 0
23+
labels: "status: blocked"
24+
message: "This PR has the 'status: blocked' label and cannot be merged until that label is removed."

0 commit comments

Comments
 (0)