Skip to content

A GitHub Action which will add users/teams as reviewers to an open pull request.

License

Notifications You must be signed in to change notification settings

ryaugusta/pr-add-reviewers

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Add Reviewers to Pull Request

Build

This action will add reviewers to a pull request. It will not add reviewers that are not collaborators on the repository.

Inputs

Name Description Required
reviewers List of user logins, comma separated, that will be requested. Must be collaborators. no
team_reviewers List of team names, comma separated, that will be requested. Must be collaborators. no
token ${{ secrets.GITHUB_TOKEN }} yes

Example Usage:

You must provide either reviewers, team_reviewers or both for this action to run.

Add reviewer(s) to a pull request on the working repository

...
- uses: ryaugusta/pr-add-reviewers-action@v1
  with:
    token: ${{ github.token }}
    reviewers: '<user_name>'
    # team_reviewers: '<team_name>'
...

Note

In some cases you may see an error where there are invalid permissions if using the GITHUB_TOKEN secret. You can add specific permissions in your workflow for this:

runs-on: ubuntu-latest
permissions: write-all 
steps:
...

License

MIT

About

A GitHub Action which will add users/teams as reviewers to an open pull request.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published