From bc8936101d371dfc2842b5d7b70e44078782436a Mon Sep 17 00:00:00 2001 From: Jonathan Perry Date: Mon, 14 Mar 2022 12:23:53 -0400 Subject: [PATCH] Add workflow to disable PR if certain labels exist (#395) --- .github/workflows/enforce-labels.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/enforce-labels.yml diff --git a/.github/workflows/enforce-labels.yml b/.github/workflows/enforce-labels.yml new file mode 100644 index 0000000000..58d822eab0 --- /dev/null +++ b/.github/workflows/enforce-labels.yml @@ -0,0 +1,13 @@ +name: Enforce PR Labels +on: + pull_request: + types: [labeled, unlabeled, opened, edited, synchronize] + + +jobs: + enforce-labels: + runs-on: ubuntu-latest + steps: + - uses: yogevbd/enforce-label-action@2.1.0 + with: + BANNED_LABELS: "needs-docs,needs-tests,needs-adr"