Skip to content

Commit

Permalink
Update labeler config with new format (#697)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lucacome authored May 31, 2023
1 parent 35ff60b commit 5aea284
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
20 changes: 11 additions & 9 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
change:
- head-branch: ['^change/']

enhancement:
- branch: ['feature/**', 'feat/**', 'enhancement/**', 'enh/**']
- head-branch: ['^feature/', '^feat/', '^enhancement/', '^enh/']

bug:
- branch: ['fix/**', 'bug/**']
- head-branch: ['^fix/', '^bug/']

chore:
- branch: ['chore/**']
- head-branch: ['^chore/']

tech-debt:
- branch: ['tech-debt/**', 'techdebt/**', 'debt/**']
- head-branch: ['^tech-debt/', '^techdebt/', '^debt/']

documentation:
- branch: ['docs/**', 'doc/**']
- '**/*.md'
- head-branch: ['^docs/', '^doc/']
- changed-files: '**/*.md'

dependencies:
- branch: ['deps/**', 'dep/**', 'dependabot/**']
- go.mod
- go.sum
- head-branch: ['^deps/', '^dep/', '^dependabot/']
- changed-files: ['go.mod', 'go.sum']
8 changes: 4 additions & 4 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Pull Request Labeler"
on:
- pull_request_target

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

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

0 comments on commit 5aea284

Please sign in to comment.