Skip to content

Commit 03c778b

Browse files
authored
Bump labeler to v5.0.0 and update config (#1342)
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
1 parent 0f44f43 commit 03c778b

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/labeler.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,18 @@ tech-debt:
1515

1616
documentation:
1717
- head-branch: ['^docs/', '^doc/']
18-
- changed-files: '**/*.md'
18+
- changed-files:
19+
- any-glob-to-any-file: '**/*.md'
1920

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

2426
tests:
25-
- head-branch: ['^test/', '^tests/']
27+
- head-branch: ['^tests/', '^test/']
2628

2729
helm-chart:
2830
- head-branch: ['^helm/', '^helm-chart/']
29-
- changed-files: ['deploy/helm-chart/**/*']
31+
- changed-files:
32+
- any-glob-to-any-file: ['deploy/helm-chart/**/*']

.github/workflows/labeler.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
pull-requests: write
1313
runs-on: ubuntu-22.04
1414
steps:
15-
- uses: actions/labeler@4f052778de9a9b80cb16cfb9079b02287285a4cb # v5.0.0-alpha.1
15+
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
1616
with:
1717
repo-token: "${{ secrets.GITHUB_TOKEN }}"
18+
sync-labels: true

0 commit comments

Comments
 (0)