patternMinor
Set additional required approver for pull requests at subfolder lever in Azure Devops
Viewed 0 times
pullsetleversubfolderazureapproverfordevopsrequestsrequired
Problem
I have a pull request policy on my repo which requires at least one member of the
Can this be done in Azure Devops using either the UI or the API?
devs group reviews and approves any change before it is merged in to master. I'd like to be able to specify additionally that any files changes under the sql_scripts folder require a member of dbadmin group to review and approve. Can this be done in Azure Devops using either the UI or the API?
Solution
Yes you can do this under branch policies.
From the GUI navigate to Repos-> then in the hamburger menu branches-> then select your master branch and then ... on choose Branch Policies. Like so
Then from the branch policies page scroll down and find the Add Automatic Reviewer button and set a path filter based on the folder.
From the GUI navigate to Repos-> then in the hamburger menu branches-> then select your master branch and then ... on choose Branch Policies. Like so
Then from the branch policies page scroll down and find the Add Automatic Reviewer button and set a path filter based on the folder.
Context
StackExchange DevOps Q#10508, answer score: 3
Revisions (0)
No revisions yet.