![]() ![]() az repos policy approver-count create -allow-downvotes īlock if the policy isn't met. To create an approver count policy, use az repos policy approver-count create. You can manage pull request required approver counts with az repos policy approver-count. To show the details of any policy, use az repos policy show. ID Name Is Blocking Is Enabled Repository Id Branchģ Work item linking False True d28cd374-e7f0-4b1f-ad60-f349f155d47c refs/heads/mainĥ Minimum number of reviewers True True d28cd374-e7f0-4b1f-ad60-f349f155d47c refs/heads/mainĦ Comment requirements False True d28cd374-e7f0-4b1f-ad60-f349f155d47c refs/heads/mainġ2 Required reviewers True False d28cd374-e7f0-4b1f-ad60-f349f155d47c refs/heads/mainġ3 Required reviewers False True d28cd374-e7f0-4b1f-ad60-f349f155d47c refs/heads/main az repos policy list -repository-id d28cd374-e7f0-4b1f-ad60-f349f155d47c -branch main -output table This example uses the following default configuration: az devops configure -defaults organization= project="Fabrikam Fiber". Work-in-progress commits are helpful when working on a feature branch, but they aren’t necessarily important to retain in the Git history. You can get the repository ID by running az repos list. You can use squash and merge to create a more streamlined Git history in your repository. The following command returns all the branch policies in effect in the main branch of the Fabrikam repository, ID d28cd374-e7f0-4b1f-ad60-f349f155d47c. You can configure the default subscription using az account set -s. ID of the repository to filter results by exact match. You can add one or more positional keywords so suggestions are based on these keywords. You can copy one of the queries and paste it after the -query parameter in double quotation marks to see the results. Required if not configured as default or picked up via git config. You can configure the default project using az devops configure -d project=. You can configure the default organization by using az devops configure -d organization=. Accepted values: false, true.Īzure DevOps organization URL. For example: -branch main.Īutomatically detect organization. ![]() The -repository-id parameter is required to use the branch filter. az repos policy list īranch name to filter results by exact match. To list all policies in a project, use az repos policy list. You can use Azure DevOps CLI to list or show policies for a branch or repository. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |