Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update labeler config with new format #697

Merged
merged 3 commits into from
May 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}"