Skip to content

Commit 5aea284

Browse files
authored
Update labeler config with new format (#697)
actions/labeler#203 was finally merged and actions/labeler created a pre-release with the changes. This updates the version of the action to use the official actions/labeler. It also updates labeler.yml with the new config format and adds missing change label.
1 parent 35ff60b commit 5aea284

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

.github/labeler.yml

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
1+
change:
2+
- head-branch: ['^change/']
3+
14
enhancement:
2-
- branch: ['feature/**', 'feat/**', 'enhancement/**', 'enh/**']
5+
- head-branch: ['^feature/', '^feat/', '^enhancement/', '^enh/']
36

47
bug:
5-
- branch: ['fix/**', 'bug/**']
8+
- head-branch: ['^fix/', '^bug/']
69

710
chore:
8-
- branch: ['chore/**']
11+
- head-branch: ['^chore/']
912

1013
tech-debt:
11-
- branch: ['tech-debt/**', 'techdebt/**', 'debt/**']
14+
- head-branch: ['^tech-debt/', '^techdebt/', '^debt/']
1215

1316
documentation:
14-
- branch: ['docs/**', 'doc/**']
15-
- '**/*.md'
17+
- head-branch: ['^docs/', '^doc/']
18+
- changed-files: '**/*.md'
1619

1720
dependencies:
18-
- branch: ['deps/**', 'dep/**', 'dependabot/**']
19-
- go.mod
20-
- go.sum
21+
- head-branch: ['^deps/', '^dep/', '^dependabot/']
22+
- changed-files: ['go.mod', 'go.sum']

.github/workflows/labeler.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Pull Request Labeler"
22
on:
33
- pull_request_target
44

5-
permissions: # added using https://github.com/step-security/secure-workflows
5+
permissions:
66
contents: read
77

88
jobs:
@@ -12,6 +12,6 @@ jobs:
1212
pull-requests: write
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: joshdales/labeler@7b1327b4c44a8794dfc7573d60637cd60ce4b697 # if https://github.com/actions/labeler/pull/203 is merged, use the official action actions/labeler
16-
with:
17-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
15+
- uses: actions/labeler@4f052778de9a9b80cb16cfb9079b02287285a4cb # v5.0.0-alpha.1
16+
with:
17+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)