Skip to content

Commit

Permalink
Fix PR labeler workflow (#255)
Browse files Browse the repository at this point in the history
Pin to v5

Update config to v5 syntax

Signed-off-by: Andy Goldstein <andy.goldstein@redhat.com>
  • Loading branch information
ncdc committed Jan 11, 2024
1 parent e6de523 commit 857d305
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 15 deletions.
39 changes: 26 additions & 13 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,35 @@
area/main-binary:
- 'main.go'
- 'internal/**/*'
- changed-files:
- any-glob-to-any-file:
- 'main.go'
- 'internal/**/*'
area/sdk:
- any:
- changed-files:
- any-glob-to-any-file:
- 'pkg/**/*'
- '!pkg/plugin/**/*'
area/plugin:
- 'pkg/plugin/**/*'
- changed-files:
- any-glob-to-any-file:
- 'pkg/plugin/**/*'
area/infra:
- '.github/**/*'
- 'Makefile'
- '.goreleaser.yml'
- '.golangci.yml'
- changed-files:
- any-glob-to-any-file:
- '.github/**/*'
- 'Makefile'
- '.goreleaser.yml'
- '.golangci.yml'
area/deps:
- 'go.mod'
- 'go.sum'
- changed-files:
- any-glob-to-any-file:
- 'go.mod'
- 'go.sum'
area/docs:
- 'README.md'
- changed-files:
- any-glob-to-any-file:
- 'README.md'
area/testing:
- '**/*_test.go'
- '**/testdata/**/*'
- changed-files:
- any-glob-to-any-file:
- '**/*_test.go'
- '**/testdata/**/*'
6 changes: 4 additions & 2 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:

jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@main
- uses: actions/labeler@v5
with:
sync-labels: true
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 857d305

Please sign in to comment.