Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you set the default reviewer for a Pull Request?

Tags:

azure-devops

Not sure SO is the right place or this question but couldn't see any other stack exchange site that this would suit. So, in VSTS how do you change the default team / reviewer when a pull request is created?

Update This appears to be set by the project/team selected at the top, not the repo. So if you select teamA at the top, but have a repo not related to that team the PR will default the reviewer as teamA, which isn't ideal.

like image 862
sr28 Avatar asked Aug 02 '18 08:08

sr28


People also ask

How do I assign a reviewer to a pull request?

Under your repository name, click Pull requests. In the list of pull requests, click the pull request that you'd like to ask a specific person or a team to review. Navigate to Reviewers in the right sidebar. To request a review from a suggested person under Reviewers, next to their username, click Request.

How do I set default reviewers in bitbucket?

In the project, select Project settings in the left sidebar. Select Default reviewers under Pull Requests on the left sidebar. Select the Add reviewers button. In the Add default reviewers dialog, add the names of any members of the workspace in which this project resides to add them as a default reviewer.

How do I automatically add reviewers 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.

Can I add myself as a reviewer on a pull request?

You cannot add yourself as a reviewer to a pull request you create, the same applies to other users for pull requests that they themselves create. As the person who initiated the pull request, it is implied that you/they have seen the code/reviewed it already.


2 Answers

Check the answer to this question: Branch Policy: Require atleast 1 Approval from specified approvers.

You specify which reviewers to add automatically as part of the branch policies: enter image description here

If you mark the group as required someone from that group has to approve the PR, else they will simply be added and notified but anyone can approve the PR (even the person who created it depending on your settings).

like image 171
Sander Aernouts Avatar answered Nov 17 '22 09:11

Sander Aernouts


The reviewers in the dropdown list only shows the team/group/user you are recently specified (ordered by time and it’s not default reviewers).

enter image description here

If you want to specify team/group/user as the PR reviewers which are not shown in the dropdown list, you can search related name, it will show the team/group/user you are looking for.

Such as I want to specify teamA as the PR reviewers, just input teamA and click search (or press enter), it will show the teamA, and you can specify teamA as PR reviewers.

enter image description here

enter image description here

And when you specify reviewers for next time, teamA will shown on the top of the dropdown list.

enter image description here

like image 33
Marina Liu Avatar answered Nov 17 '22 09:11

Marina Liu