-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: permissions for PR labeler GH action workflow
Signed-off-by: Vladislav Doster <[email protected]>
- Loading branch information
1 parent
08c7053
commit b30315a
Showing
2 changed files
with
18 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
# Add 'zinit` label to any change in a zinit file | ||
zinit: | ||
- zinit*.zsh | ||
# Add 'scripts` label to any change in scripts/ directory | ||
scripts: | ||
- scripts/* | ||
# Add 'docs` label to any change in doc/ directory | ||
docs: | ||
- docs/* | ||
- doc/**/* | ||
# Add 'tests` label to any change in tests/ directory | ||
tests: | ||
- tests/* | ||
ci/cd: | ||
- .github/* | ||
- .github/**/* | ||
ci/cd: ['.github/**/*'] | ||
|
||
docs: ['docker/*'] | ||
|
||
docs: ['doc/**/*'] | ||
|
||
scripts: ['scripts/*'] | ||
|
||
tests: ['tests/**/*', '.zunit.yml'] | ||
|
||
zinit: ['zinit*.zsh', '_zinit'] |
11 changes: 7 additions & 4 deletions
11
.github/workflows/labeler.yml → .github/workflows/labeler.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
# This workflow will triage pull requests and apply a label based on the | ||
# paths that are modified in the pull request. | ||
# This workflow will triage pull requests and apply a label based on the paths | ||
# that are modified in the pull request. | ||
|
||
name: Labeler | ||
on: [pull_request] | ||
|
||
on: [pull_request_target] | ||
|
||
jobs: | ||
label-pull-requests: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/labeler@v4 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
sync-labels: true |