Explorar o código

An action preventing merge with specific labels

Roman Zabaluev %!s(int64=3) %!d(string=hai) anos
pai
achega
8c99cdfb50
Modificáronse 1 ficheiros con 13 adicións e 0 borrados
  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"