Reputation: 3436
Since we have many repos in our account, we use Cross-Repository policies for default branch. However, a small number of repos needs a different policy.
Specifically, we have a group that are added as automatic reviewers:
We would like to remove this group and use another group for a limited number of repos.
Is there a way to do that?
Upvotes: 3
Views: 1140
Reputation: 890
Here is the user voice for overwriting branch policies directly for certain repositories. Maybe it will be implemented in the future, but currently there are no way to do it directly.
However there is another way to do it which is also mentioned in MS documentation. You can simply allow for certain teams to bypass some policies in repo settings:
Allow
three marked fieldsThis does not solve op question for automatic reviewers, so this can also be worked arround by going to desired repository default branch and adding a different reviewer there. In this case it will be two reviewers, but when making a PR users could simply choose which reviewer they want
Upvotes: 2
Reputation: 23760
How to turn off Cross-Repository policies for default branch for certain repos
I think is is impossible. So far, there is no such option to control which repos enable the setting and which do not under the policies.
As a workaround, you have to set the policies setting for each repo.
Besides, if this does not meet your requirement, you have to suggest a feature to the Team and they will handle your suggestion carefully.
Upvotes: 1