Skip to content

Commit b53b36b

Browse files
story645QuLogic
andcommitted
prevent merge on label [skip ci]
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 parent ff0497c commit b53b36b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/do_not_merge.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Do Not Merge
3+
4+
# action to block merging on specific labels
5+
on: pull_request_target
6+
jobs:
7+
do-not-merge:
8+
if: >-
9+
contains(github.event.*.labels.*.name, 'status: needs comment/discussion') ||
10+
contains(github.event.*.labels.*.name, 'status: waiting for other PR')
11+
name: Prevent Merging
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Check for label
15+
run: |
16+
echo "Following labels must be removed to allow merging: "
17+
echo "${{ toJson(github.event.pull_request.labels.*.name) }}"
18+
exit 1

0 commit comments

Comments
 (0)