My Workflow
Who should be the assignee of Pull Request ❓
In most cases, the Pull Request author should be assigned as an assignee.
My workflow, named Auto Author Assign, assigns PR author automatically when PR is opened.
Submission Category:
Maintainer Must-Haves
Auto Author Assign makes it easy for OSS maintainer to assign someone to PR and filter PR from the list.
Yaml File or Link to Code
.github/workflows/auto-author-assign.yml
:
name: 'Auto Author Assign'
on:
pull_request_target:
types: [opened, reopened]
jobs:
assign-author:
runs-on: ubuntu-latest
steps:
- uses: toshimaru/auto-author-assign@v1.1.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
Source code:
toshimaru
/
auto-author-assign
GitHub Actions: Assign pull request author automatically.
auto-author-assign
GitHub Actions: Assign pull request author automatically.
Why this action?
In most cases, pull request author should be assigned an assignee of the pull request.
This action automatically assigns PR author as an assignee.
Usage
# .github/workflows/auto-author-assign.yml
name: 'Auto Author Assign'
on:
pull_request_target:
types: [opened, reopened]
jobs:
assign-author:
runs-on: ubuntu-latest
steps:
- uses: toshimaru/auto-author-assign@v1.1.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
Skip assigning author
auto-author-assign
action skips assigning the author when:
- Someone is already assigned as an assignee
- The author is a bot
Additional Resources / Info
- I use this action on my project: RailsTwitterClone
Top comments (2)
Whats the benefit of assigning someone to a PR? Whenever I open a PR I never assign myself to it. Does github do some cool stuff like when some hits "Requests CHanges" it messages me?
I don't too. The only benefit I found is, it provides a profile picture in pull requests page shown above in red box and I'm thinking to use this action.