Skip to content

Commit 7f55463

Browse files
authored
Add PR labeler (#230)
Automatically adds labels to PRs based on the rules in `.github/labeler.yml`
1 parent d700d45 commit 7f55463

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/labeler.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
enhancement:
2+
- branch: ['feature/**', 'feat/**', 'enhancement/**', 'enh/**']
3+
4+
bug:
5+
- branch: ['fix/**', 'bug/**']
6+
7+
chore:
8+
- branch: ['chore/**']
9+
10+
documentation:
11+
- branch: ['docs/**', 'doc/**']
12+
- '**/*.md'
13+
14+
dependencies:
15+
- branch: ['deps/**', 'dep/**', 'dependabot/**']
16+
- go.mod
17+
- go.sum

.github/workflows/labeler.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Pull Request Labeler"
2+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
triage:
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: joshdales/labeler@0861fa5accbc36878f85f40b98a9f40b15fe0429 # if https://github.com/actions/labeler/pull/203 is merged, use the official action actions/labeler
13+
with:
14+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)