Skip to content

Commit e78106c

Browse files
Add labeler
Signed-off-by: Viacheslav Kudinov <viacheslav@kudinov.tech>
1 parent 38e68ad commit e78106c

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/labeler.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Configuration for labeler - https://github.com/actions/labeler
2+
"Type: Breaking change":
3+
- head-branch: ['^breaking/', '^breaking-']
4+
5+
"Type: Feature":
6+
- head-branch: ['^feat/', '^feat-', '^feature/', '^feature-']
7+
8+
"Type: Bug":
9+
- head-branch: ['^fix/', '^fix-', '^bugfix/', '^bugfix-', '^bug/', '^bug-']
10+
11+
"Deprecation":
12+
- head-branch: ['^deprecate/', '^deprecate-', '^deprecation/', '^deprecation-']
13+
14+
"Type: Maintenance":
15+
- head-branch: ['^chore/', '^chore-', '^maintenance/', '^maintenance-', '^maint/', '^maint-', '^deps/', '^deps-', '^dependencies/', '^dependencies-']
16+
- changed-files:
17+
- any-glob-to-any-file:
18+
- .github/workflows/**
19+
- .github/labeler.yml
20+
- .github/dependabot.yml
21+
- .github/release.yml
22+
23+
"Type: Documentation":
24+
- head-branch: ['^docs/', '^docs-', '^doc/', '^doc-']
25+
- changed-files:
26+
- any-glob-to-any-file: 'website/**'
27+

.github/workflows/labeler.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Pull Request Labeler
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, synchronize, reopened]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write # Use this if all labels already exist in the repository (i.e., pre-defined in .github/labeler.yml).
10+
11+
jobs:
12+
labeler:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
17+
18+
- name: Run Labeler
19+
uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1
20+
with:
21+
sync-labels: true # Whether or not to remove labels when matching files are reverted or no longer changed by the PR

0 commit comments

Comments
 (0)