From 1bcd52cf526890f0728732f6e243916dbee3598f Mon Sep 17 00:00:00 2001 From: Mateusz Szostok Date: Wed, 30 Aug 2023 12:18:17 +0200 Subject: [PATCH] Add GitHub action to enforce labels --- .github/workflows/enforce-labels.yml | 17 +++++++++++++++++ 1 file changed, 17 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 000000000..1e730c9f4 --- /dev/null +++ b/.github/workflows/enforce-labels.yml @@ -0,0 +1,17 @@ +name: Enforce PR labels + +on: + pull_request: + types: [labeled, unlabeled, opened, edited, synchronize] + +# Disable permissions for all the available scopes +permissions: {} + +jobs: + enforce-label: + runs-on: ubuntu-latest + steps: + - uses: yogevbd/enforce-label-action@2.1.0 + with: + REQUIRED_LABELS_ANY: "bug,enhancement,breaking,documentation,other" + BANNED_LABELS: "hold,'do not merge'"