From 02563b82fd07c150621ca1a7d02968eaadec5d0d Mon Sep 17 00:00:00 2001 From: Gert Hengeveld Date: Mon, 11 Mar 2024 17:00:01 +0100 Subject: [PATCH] Require PR labels before merging --- .github/workflows/check-labels.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/check-labels.yml diff --git a/.github/workflows/check-labels.yml b/.github/workflows/check-labels.yml new file mode 100644 index 00000000..f4429e23 --- /dev/null +++ b/.github/workflows/check-labels.yml @@ -0,0 +1,18 @@ +name: Check PR Labels +on: + pull_request: + types: [opened, labeled, unlabeled, synchronize] + +jobs: + check-labels: + runs-on: ubuntu-latest + steps: + - uses: actions/setup-node@v4 + with: + node-version: 20 + - uses: chromaui/pr-label-checker-action@main + with: + one-of: | + major, minor, patch + release, skip-release + none-of: DO NOT MERGE