You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Auto Author Assign
v1.6.1
GitHub Actions: Assign pull request author automatically.
In most cases, pull request author should be assigned an assignee of the pull request.
This action automatically assigns PR author as an assignee.
# .github/workflows/auto-author-assign.yml
name: Auto Author Assign
on:
pull_request_target:
types: [ opened, reopened ]
permissions:
pull-requests: write
jobs:
assign-author:
runs-on: ubuntu-latest
steps:
- uses: toshimaru/[email protected]
You can specify your own token.
jobs:
assign-author:
runs-on: ubuntu-latest
steps:
- uses: toshimaru/auto-author-assign
with:
repo-token: ${{ secrets.YOUR_TOKEN }}
If not specified, GITHUB_TOKEN
will be used by default.
An issue author can be automatically assigned as an issue assignee.
- Add
issues
to the trigger - Add
issues: write
to the permissions
on:
issues:
types: [ opened, reopened ]
pull_request_target:
types: [ opened, reopened ]
permissions:
issues: write
pull-requests: write
jobs:
...
auto-author-assign
action skips assigning the author when:
- Someone is already assigned as an assignee
- The author is a bot