Skip to content

Commit 44bd321

Browse files
authored
chore: add Require Pull Request Labels workflow (#375)
1 parent 9782218 commit 44bd321

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/labels.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Require Pull Request Labels
2+
on:
3+
pull_request:
4+
types: [opened, labeled, unlabeled, synchronize]
5+
jobs:
6+
label:
7+
# Only run if PR is not from a fork
8+
if: github.event.pull_request.head.repo.full_name == github.repository
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
pull-requests: write
13+
steps:
14+
- uses: mheap/github-action-required-labels@v5
15+
with:
16+
mode: minimum
17+
count: 1
18+
labels: |
19+
Docs:User
20+
Docs:Admin
21+
Docs:Developer
22+
Docs:Breaking-Change
23+
Docs:Build&Tools
24+
Docs:Guides
25+
add_comment: true

0 commit comments

Comments
 (0)