Skip to content

Commit

Permalink
action to enforce labels
Browse files Browse the repository at this point in the history
  • Loading branch information
shaswot77 committed Oct 7, 2024
1 parent 16305a5 commit 7ad4371
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/enforce-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Enforce PR labels

on:
pull_request:
types: [labeled, unlabeled, opened, edited, synchronize]

jobs:
enforce-label:
runs-on: ubuntu-latest
steps:
- name: Enforce first set of labels
uses: yogevbd/enforce-label-action@2.2.2
with:
REQUIRED_LABELS_ANY: 'breaking,non-breaking'
REQUIRED_LABELS_ANY_DESCRIPTION: "Select at least one label ['breaking','non-breaking']"

- name: Enforce second set of labels
uses: yogevbd/enforce-label-action@2.2.2
with:
REQUIRED_LABELS_ANY: 'bug-fix,internal,enhancement,new-plugin'
REQUIRED_LABELS_ANY_DESCRIPTION: "Select at least one label ['bug-fix','internal','enhancement','new-plugin']"

0 comments on commit 7ad4371

Please sign in to comment.