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

Lines changed: 18 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy