8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff0497c commit b53b36bCopy full SHA for b53b36b
.github/workflows/do_not_merge.yml
@@ -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