Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add a required reviewer when people of a given team create a pull request in DevOps?

Tags:

azure-devops

After hours of googling and search, I can't find how to add a required reviewer when people of a given team create a pull request in DevOps.

Some people will be able to contribute to our repository, but they are external to our company, that's why we want to enforce this control.

Does anyone ever did it?

Thanks.

like image 884
Vasilievski Avatar asked Jan 27 '26 16:01

Vasilievski


1 Answers

You can do this with a branch policy in Azure DevOps Repos. In ADO, go to project settings and click Repositories in the menu in the Repos section of the project settings page. Click the repository you would like to protect with code reviews and then select the Policies tab. Next select the git branch needing reviews.

On the bottom of the branch policies page you can select Automatically included reviewers. Click the + button to add reviewers. When adding the reviewers you can select if these selected reviewers are required or optional. This is actually something of a rule-builder, you can add multiple 'rules' by repeatedly going through click + and add reviewers

There is also some documentation on branch policies that might be helpful

like image 73
Roderick Bant Avatar answered Jan 29 '26 06:01

Roderick Bant



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!