From 8c99cdfb5045c0899c39f336a69a1e3c9e20d46b Mon Sep 17 00:00:00 2001 From: Roman Zabaluev Date: Wed, 19 Jan 2022 14:48:53 +0300 Subject: [PATCH] An action preventing merge with specific labels --- .github/workflows/block_merge.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/block_merge.yml diff --git a/.github/workflows/block_merge.yml b/.github/workflows/block_merge.yml new file mode 100644 index 0000000000..ffac2889a1 --- /dev/null +++ b/.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"