azure-devops-cli-extension icon indicating copy to clipboard operation
azure-devops-cli-extension copied to clipboard

[Bug] or [Features] az repos policy approver-count

Open HenrikSommer-Energinet opened this issue 4 years ago • 3 comments

az repos policy approver-count create and update is missing the settings: image

First it prevent us from setting it from AZ CLI and if we try to update an existing policy it will reset missing settings that was set from web site or other tools.

Describe the solution you'd like

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_create and 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 gets a new Optional Parameters called blockLastPusherVote

Additional context It would be an idea to change the update to a PATCH request instead of a PUT. So it does not override settings az cli dont know about. Note: It require that https://docs.microsoft.com/en-us/rest/api/azure/devops/policy/configurations/update?view=azure-devops-rest-6.0 will be update to support PATCH request.

HenrikSommer-Energinet avatar Jan 25 '21 12:01 HenrikSommer-Energinet

Is there any update on this issue? It would be great when this vital functionality would be available!

Marc013 avatar Apr 06 '21 08:04 Marc013

any news? in the meantime, this might be helpful https://gist.github.com/fleckert/85129ec055a8ce0ae0f34394d1ed1067

fleckert avatar Apr 27 '23 10:04 fleckert

Any update on this?

LockTar avatar Jan 25 '24 13:01 LockTar