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.
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.
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.
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.
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.
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:
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).
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).
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.
And when you specify reviewers for next time, teamA will shown on the top of the dropdown list.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With