Skip to content

Commit

Permalink
Fix PR labeler workflow (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
arybolovlev authored Jun 11, 2024
1 parent 8f3eba6 commit c34abbb
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 18 deletions.
61 changes: 46 additions & 15 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,65 @@
api:
- 'api/**/*.go'
- any:
- changed-files:
- any-glob-to-any-file:
- 'api/**/*.go'

controller:
- 'controllers/*.go'
- any:
- changed-files:
- any-glob-to-any-file:
- 'controllers/*.go'

crd:
- 'config/crd/bases/*.yaml'
- any:
- changed-files:
- any-glob-to-any-file:
- 'config/crd/bases/*.yaml'

dependencies:
- 'go.mod'
- 'go.sum'
- any:
- changed-files:
- any-glob-to-any-file:
- 'go.mod'
- 'go.sum'

documentation:
- any: ['*.md']
all: ['!CHANGELOG.md']
- 'charts/**/*.md'
- 'docs/*.md'
- all:
- changed-files:
- any-glob-to-any-file:
- '*.md'
- 'charts/**/*.md'
- 'docs/*.md'
- all-globs-to-all-files:
- '!CHANGELOG.md'

github_actions:
- '**/workflows/*.yaml'
- '**/workflows/*.yml'
- any:
- changed-files:
- any-glob-to-any-file:
- '**/workflows/*.yaml'
- '**/workflows/*.yml'

golang:
- '**/*.go'
- any:
- changed-files:
- any-glob-to-any-file:
- '**/*.go'

helm-chart:
- 'charts/**/*.yaml'
- any:
- changed-files:
- any-glob-to-any-file:
- 'charts/**/*.yaml'

release:
- 'version/VERSION'
- any:
- changed-files:
- any-glob-to-any-file:
- 'version/VERSION'

test:
- '**/*_test.go'
- any:
- changed-files:
- any-glob-to-any-file:
- '**/*_test.go'
9 changes: 6 additions & 3 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: "PR Labeler"

on:
pull_request_target:
branches:
- main
pull_request_target:
branches:
- main

permissions:
pull-requests: write
Expand All @@ -13,6 +13,9 @@ jobs:
triage:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4

- name: Label Pull Request
uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
with:
Expand Down

0 comments on commit c34abbb

Please sign in to comment.