You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Branch policies help teams protect their important branches of development. Policies enforce your team's code quality and change management standards. For an overview of policy settings you can configure, see [Git repository settings and policies](../repos/git/repository-settings.md).
19
20
20
-
You can configure branch policies for your repository using the various `az repos policy` commands. However, the policy commands accept a single scope, i.e., single combination of repository, branch and match type. If you want to apply the same policy across various scopes, you can do that using a policy configuration file.
21
+
You can configure branch policies for your repository using the various `az repos policy` commands. The policy commands accept a single scope. They work on a single combination of repository, branch, and match type. If you want to apply the same policy across various scopes, use a policy configuration file.
21
22
22
-
Say you want to create a manual queue build policy across all branch folders that start with "release" and also on the main branch. To achieve this, execute the following steps:
23
+
Say you want to create a manual queue build policy. It covers all branch folders that start with "release" and also on the main branch.
23
24
24
-
## Create a policy configuration file
25
-
26
-
Create a policy configuration file for build policy, including the multiple application scopes.
25
+
First, create a policy configuration file for build policy, including the multiple application scopes.
27
26
28
27
> [!div class="tabbedCodeSnippets"]
28
+
29
29
> ```json
30
30
> {
31
31
> "isBlocking": true,
@@ -41,32 +41,34 @@ Create a policy configuration file for build policy, including the multiple appl
0 commit comments