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: Automatically assign pull request authors.
auto-author-assign
GitHub Actions: Automatically assign pull request authors.
Why this action?
In most cases, the pull request author should be assigned as an assignee of the pull request.
This action automatically assigns the pull request author as an assignee.
Usage
# .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/auto-author-assign@v2.1.1
Use your own token
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.
Enable auto-author-assign for issues
An issue's author can be automatically assigned as an issue assignee.
- Add 
issuesto the trigger - Add 
issues: writeto the permissions 
on
  issues:
    types: [ opened, reopened ]…Additional Resources / Info
- I use this action on my project: RailsTwitterClone
 
              


    
Top comments (3)
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?
When you work in big team on 1 project, you could have more that a few opened pull request and sometimes you need to find PR of specific person, so for this you can use filter by author and if you use assign field - you could see PR's of that person
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.