Skip to content

Commit bb685c6

Browse files
committed
Enforce labels on pull requests
Release drafter works based on PR labels. Make sure there are at least one categorizing label.
1 parent aa5188e commit bb685c6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/enforce-labels.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Enforce PR labels for release drafter
2+
3+
on:
4+
pull_request:
5+
types: [labeled, unlabeled, opened, edited, synchronize]
6+
jobs:
7+
enforce-label:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: yogevbd/[email protected]
11+
with:
12+
REQUIRED_LABELS_ANY: "bug,enhancement,internal,documentation,skip-changelog"
13+
REQUIRED_LABELS_ANY_DESCRIPTION: "Select at least one label ['bug','enhancement','internal','documentation','skip-changelog'] for the PR"

0 commit comments

Comments
 (0)