From 1b80f91d49e727ae611afafbc56e6eafb16dda4b Mon Sep 17 00:00:00 2001 From: Noi Narisak Date: Fri, 20 Aug 2021 15:02:43 -0500 Subject: [PATCH] Create pull-request-police.yml (#458) Add GH Action to require PR to have labels! --- .github/workflows/pull-request-police.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/pull-request-police.yml diff --git a/.github/workflows/pull-request-police.yml b/.github/workflows/pull-request-police.yml new file mode 100644 index 00000000..fc1fbb17 --- /dev/null +++ b/.github/workflows/pull-request-police.yml @@ -0,0 +1,13 @@ +name: Pull Request Police +on: + pull_request: + types: [opened, labeled, unlabeled, synchronize] +jobs: + label: + runs-on: ubuntu-latest + steps: + - uses: mheap/github-action-required-labels@v1 + with: + mode: exactly + count: 1 + labels: "type: breaking, type: feature, type: bug, type: maintenance, type: docs, type: dependencies"