Skip to content

Commit 365f30f

Browse files
authored
chore: create workflow to check the do-not-merge label (#3213)
We have the label, but it doesn't do anything. Add a workflow that can check it, to be added as a required status check.
1 parent 2ed714f commit 365f30f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Check 'do not merge' label"
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopened
9+
- labeled
10+
- unlabeled
11+
12+
jobs:
13+
block-do-not-merge:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Check for "do not merge" label
17+
if: "contains(github.event.pull_request.labels.*.name, 'do not merge')"
18+
run: |
19+
echo "This PR has the 'do not merge' label and cannot be merged."
20+
exit 1

0 commit comments

Comments
 (0)