Skip to content

Commit cdc2e4a

Browse files
authored
add workflow (#300)
1 parent 9e18453 commit cdc2e4a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/blocked-pr.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Check Blocked PR
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- labeled
8+
- unlabeled
9+
10+
jobs:
11+
fail-for-blocked:
12+
if: contains(github.event.pull_request.labels.*.name, 'Blocked')
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Fail if PR is blocked
16+
run: |
17+
echo "This PR is currently blocked. Please unblock it before merging."
18+
exit 1

0 commit comments

Comments
 (0)