Azure / Azure/azure-cli-extensions
Unable to set "Prohibit the most recent pusher from approving their own changes".
- Dominant language
- Python
- Stars
- 454
- Forks
- 1.7k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 64
Description
I have a script that uses the ADO CLI to create a repository, as well as to add policy on branches within that repository. All works well, with one exception:
I am unable to set the value that shows up in the ADO web app as "Prohibit the most recent pusher from approving their own changes". How do I use the CLI to set this field?
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: 38c5552c-75a4-66b2-29fa-8d842666ef39
* Version Independent ID: 33614bab-8b68-a100-503a-4002c501c301
* Content: [az repos policy approver-count](https://docs.microsoft.com/en-us/cli/azure/ext/azure-devops/repos/policy/approver-count?view=azure-cli-latest#ext_azure_devops_az_repos_policy_approver_count_update)
* Content Source: [latest/docs-ref-autogen/ext/azure-devops/repos/policy/approver-count.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/master/latest/docs-ref-autogen/ext/azure-devops/repos/policy/approver-count.yml)
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**
Contributor guide
Assessment
This issue has not been assessed yet.