-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: try to fixup pr labeller config
- Loading branch information
1 parent
3e2990c
commit 8bc659b
Showing
4 changed files
with
25 additions
and
26 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
feature: | ||
- head-branch: 'feature/*' | ||
fix: | ||
- head-branch: 'fix/*' | ||
chore: | ||
- head-branch: 'chore/*' | ||
dependencies: | ||
- any: | ||
- head-branch: 'dependencies/*' | ||
- head-branch: 'dependabot/*' |
This file was deleted.
Oops, something went wrong.
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,26 +1,19 @@ | ||
name: PR Labeler | ||
on: | ||
pull_request: | ||
types: [opened] | ||
|
||
permissions: | ||
contents: read | ||
- pull_request_target | ||
|
||
jobs: | ||
pr-labeler: | ||
permissions: | ||
contents: read # for TimonVS/pr-labeler-action to read config file | ||
pull-requests: write # for TimonVS/pr-labeler-action to add labels in PR | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Generate token | ||
id: generate_token | ||
uses: tibdex/github-app-token@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
app_id: ${{ secrets.OCMBOT_APP_ID }} | ||
private_key: ${{ secrets.OCMBOT_PRIV_KEY }} | ||
sparse-checkout: | | ||
.github/config/labeler.yml | ||
- name: Label PR based on branch name | ||
uses: TimonVS/pr-labeler-action@v5 | ||
uses: actions/labeler@v5 | ||
with: | ||
repo-token: ${{ steps.generate_token.outputs.token }} | ||
configuration-path: .github/config/pr-labeler.yml | ||
configuration-path: .github/config/labeler.yml |
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