-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from toshimaru/readme-for-issu-auto-author-assign
doc: README update for the issue auto-author-assign
- Loading branch information
Showing
4 changed files
with
32 additions
and
14 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
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
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
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 |
---|---|---|
|
@@ -19,21 +19,17 @@ This action automatically assigns PR author as an assignee. | |
name: Auto Author Assign | ||
|
||
on: | ||
issues: | ||
types: [ opened, reopened ] | ||
pull_request_target: | ||
types: [ opened, reopened ] | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
assign-author: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: toshimaru/[email protected] | ||
|
||
``` | ||
## Use your own token | ||
|
@@ -48,11 +44,32 @@ jobs: | |
- uses: toshimaru/auto-author-assign | ||
with: | ||
repo-token: ${{ secrets.YOUR_TOKEN }} | ||
|
||
``` | ||
If not specified, `GITHUB_TOKEN` will be used by default. | ||
|
||
## Enable auto-author-assign for the issues | ||
|
||
An issue author can be automatically assigned as an issue assignee. | ||
|
||
- Add `issues` to the trigger | ||
- Add `issues: write` to the permissions | ||
|
||
```yml | ||
on: | ||
issues: | ||
types: [ opened, reopened ] | ||
pull_request_target: | ||
types: [ opened, reopened ] | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
jobs: | ||
... | ||
``` | ||
|
||
## Skip assigning author | ||
|
||
`auto-author-assign` action skips assigning the author when: | ||
|