Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding a Reviewer to a GitHub Pull Request

In bitbucket, I can add reviewers to a pull request, indicating that I'd like them to review the request. How can I do the same on GitHub?

The only thing I see is "Assignee", which is only for one person. Do I have to ping them in the pull request message and/or a PR comment?

like image 556
Andrew Grimm Avatar asked Aug 28 '15 02:08

Andrew Grimm


People also ask

How do I assign a reviewer to a pull request?

To add default pull request reviewers for a single repository (requires repo admin permissions): Go to Repository settings > Default reviewers. Click Add default reviewers. For the Source branch and Target branch fields, select either Branch name, Branch pattern, Branching model, or Any branch.

How do I assign a code reviewer on GitHub?

At the top of the team page, click Settings. In the left sidebar, click Code review. Select Enable auto assignment. Under "How many team members should be assigned to review?", use the drop-down menu and choose a number of reviewers to be assigned to each pull request.

Who can review a pull request GitHub?

By default, in public repositories, any user can submit reviews that approve or request changes to a pull request. Organization owners and repository admins can limit who is able to give approving pull request reviews or request changes.


2 Answers

Since Dec. 2016, there is a more integrated way to notify the people you want for reviewing your PR.
See "Introducing review requests"

You can now request a review explicitly from collaborators, making it easier to specify who you'd like to review your pull request.

You can also see a list of people who you are awaiting review from in the pull request page sidebar, as well as the status of reviews from those who have already left them.

gif of requesting review from sidebar

As noted in the comments by Alexander Amelkin:

This feature is only for the owner of the repository, not for the author of the pull request.
The pull request author still can't request anyone to review his request.
The only way is to mention the person in a comment.

like image 142
VonC Avatar answered Oct 11 '22 06:10

VonC


Yes, in Github you only can assign a PR to one person. And if you want to notify more people, mention them in the comments.

like image 33
David Figueroa Avatar answered Oct 11 '22 04:10

David Figueroa