Skip to content

Commit dff325b

Browse files
committed
ci: prevent PR with "do not merge" label from being merged
1 parent c098cb4 commit dff325b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Check Do Not Merge Label
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- labeled
8+
- unlabeled
9+
10+
jobs:
11+
fail-for-do-not-merge:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Fail if PR is labelled with "do not merge"
15+
if: contains(github.event.pull_request.labels.*.name, '🚨 DO NOT MERGE')
16+
run: |
17+
echo "This PR is labelled with "do not merge"."
18+
exit 1

0 commit comments

Comments
 (0)