Skip to content

Commit

Permalink
Bump labeler to v5.0.0 and update config (#1342)
Browse files Browse the repository at this point in the history
Problem: We started using actions/labeler when it was in alpha and the
configuration structure changed in the stable release

Solution: Update actions/labeler to the latest stable version and update
the configuration structure accordingly
  • Loading branch information
lucacome authored Dec 7, 2023
1 parent 0f44f43 commit 03c778b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,18 @@ tech-debt:

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

dependencies:
- head-branch: ['^deps/', '^dep/', '^dependabot/', 'pre-commit-ci-update-config']
- changed-files: ['go.mod', 'go.sum']
- changed-files:
- any-glob-to-any-file: ['go.mod', 'go.sum']

tests:
- head-branch: ['^test/', '^tests/']
- head-branch: ['^tests/', '^test/']

helm-chart:
- head-branch: ['^helm/', '^helm-chart/']
- changed-files: ['deploy/helm-chart/**/*']
- changed-files:
- any-glob-to-any-file: ['deploy/helm-chart/**/*']
3 changes: 2 additions & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
pull-requests: write
runs-on: ubuntu-22.04
steps:
- uses: actions/labeler@4f052778de9a9b80cb16cfb9079b02287285a4cb # v5.0.0-alpha.1
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true

0 comments on commit 03c778b

Please sign in to comment.