Skip to content

Commit e428173

Browse files
committed
Add action that fails if a PR has no label attached
1 parent bd3914b commit e428173

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Pull Request Labels
2+
on:
3+
pull_request:
4+
types: [opened, labeled, unlabeled, synchronize, reopened, ready_for_review, draft]
5+
jobs:
6+
label:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
steps:
12+
- uses: mheap/github-action-required-labels@v5
13+
with:
14+
count: 1
15+
add_comment: true
16+
message: "Please attach a label to this PR. This helps with generating helpful release notes."

0 commit comments

Comments
 (0)