-
Notifications
You must be signed in to change notification settings - Fork 895
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use dedicated token for pr assignment
Since changing the default permissions of the GITHUB_TOKEN this workflow was failing with insufficient permissions.
- Loading branch information
Showing
2 changed files
with
10 additions
and
2 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,6 @@ | ||
|
||
addReviewers: false | ||
|
||
# Set to true to add assignees to pull requests | ||
addAssignees: author | ||
|
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 |
---|---|---|
|
@@ -15,13 +15,15 @@ name: Assign PR to author and reviewers | |
types: [ opened, reopened, ready_for_review ] | ||
|
||
jobs: | ||
|
||
assign-pr: | ||
name: Assign PR to author | ||
permissions: | ||
contents: write | ||
contents: read # for kentaro-m/auto-assign-action to fetch config file | ||
pull-requests: write # for kentaro-m/auto-assign-action to assign PR reviewers | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: toshimaru/auto-author-assign@v2.1.0 | ||
- uses: kentaro-m/auto-assign[email protected] | ||
|
||
ask-review: | ||
name: Run pull-review | ||
|