From 3e5014f60ee3b8f78375313cccd76edba9af68ac Mon Sep 17 00:00:00 2001 From: Ulli Hafner Date: Mon, 12 Jun 2023 21:48:58 +0200 Subject: [PATCH] Replace label checker with other GitHub action. --- .github/workflows/enforce-labels.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/enforce-labels.yml b/.github/workflows/enforce-labels.yml index 3a41957..5a27f6a 100644 --- a/.github/workflows/enforce-labels.yml +++ b/.github/workflows/enforce-labels.yml @@ -1,14 +1,17 @@ name: Enforce PR labels - on: pull_request: - types: [unlabeled] + types: [opened, labeled, unlabeled, synchronize] jobs: - enforce-label: + label: runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write steps: - - uses: yogevbd/enforce-label-action@2.2.2 + - uses: mheap/github-action-required-labels@v5 with: - REQUIRED_LABELS_ANY: "bug,feature,enhancement,deprecated,removed,tests,documentation,internal,dependencies" - REQUIRED_LABELS_ANY_DESCRIPTION: "Maintainer needs to assign at least one label before merge" - BANNED_LABELS: "banned" + mode: exactly + count: 1 + labels: "bug,feature,enhancement,breaking,tests,documentation,internal,dependencies" + message: "Maintainer needs to assign at least one label before merge"