From 8912e243bb3b333c618104ba51baad8b2ba3f968 Mon Sep 17 00:00:00 2001 From: Artem Veremey Date: Tue, 18 May 2021 10:09:17 -0700 Subject: [PATCH] Enforcing labels on pull requests --- .github/workflows/labels.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 .github/workflows/labels.yml diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml new file mode 100755 index 00000000000..0d7abeedc14 --- /dev/null +++ b/.github/workflows/labels.yml @@ -0,0 +1,18 @@ +name: Pull Request Labels +"on": + pull_request: + types: [opened, reopened, labeled, unlabeled, synchronize] +jobs: + label: + runs-on: ubuntu-latest + steps: + - uses: mheap/github-action-required-labels@v1 + with: + mode: minimum + count: 1 + labels: "s-feature, m-feature, l-feature, build, refactor, tests, documentation, bug, enhancement" + - uses: mheap/github-action-required-labels@v1 + with: + mode: exactly + count: 0 + labels: "do not merge"