Browse Source

An action preventing merge with specific labels

Roman Zabaluev 3 years ago
parent
commit
8c99cdfb50
1 changed files with 13 additions and 0 deletions
  1. 13 0
      .github/workflows/block_merge.yml

+ 13 - 0
.github/workflows/block_merge.yml

@@ -0,0 +1,13 @@
+name: Pull Request Labels
+on:
+  pull_request:
+    types: [opened, labeled, unlabeled, synchronize]
+jobs:
+  block_merge:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: mheap/github-action-required-labels@v1
+        with:
+          mode: exactly
+          count: 0
+          labels: "status/blocked, status/needs-attention, status/on-hold, status/pending, status/triage"