Skip to content

Commit

Permalink
Replace label checker with other GitHub action.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Jun 12, 2023
1 parent 9f885b9 commit 3e5014f
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/enforce-labels.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 3e5014f

Please sign in to comment.