Skip to content

Commit b7a580b

Browse files
authored
chore: automatically label PRs (#1822)
1 parent d94f9e5 commit b7a580b

File tree

3 files changed

+42
-5
lines changed

3 files changed

+42
-5
lines changed

.github/labeler.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
documentation:
2+
- changed-files:
3+
- any-glob-to-any-file: docs/**
4+
- any-glob-to-any-file: examples/**
5+
6+
feature:
7+
- head-branch: ['^feature', 'feature', '^feat']
8+
9+
bugfix:
10+
- head-branch: ['^fix', 'fix', '^bugfix']
11+
12+
chore:
13+
- head-branch: ['^chore', '^ci']
14+
15+
refactor:
16+
- head-branch: ['^refactor']
17+
18+
test:
19+
- head-branch: ['^test']

.github/release.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
changelog:
2+
exclude:
3+
labels:
4+
- documentation
5+
- chore
6+
- refactor
7+
- release-ignore
28
categories:
3-
- title: Changes
9+
- title: Features
410
labels:
5-
- '*'
6-
exclude:
7-
labels:
8-
- dependencies
11+
- 'feature'
12+
- title: Fixes
13+
labels:
14+
- 'bugfix'
915
- title: Dependencies
1016
labels:
1117
- dependencies

.github/workflows/labeler.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "Pull Request Labeler"
2+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
labeler:
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/labeler@v5

0 commit comments

Comments
 (0)