소스 검색

An action preventing merge with specific labels

Roman Zabaluev 3 년 전
부모
커밋
8c99cdfb50
1개의 변경된 파일13개의 추가작업 그리고 0개의 파일을 삭제
  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"