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

Unable to uncheck 'Allow requestors to approve their own changes' under Completion options

Open omerzubair opened this issue 3 years ago • 15 comments
trafficstars

I was not able to find the switch to be able to uncheck the "Allow requestors to approve their own changes". There is no switch for update policy.

$requiredReviewer = az repos policy required-reviewer create --blocking true --branch "main" --branch-match-type "exact" --enabled true --repository-id $($repositoryid) --required-reviewer-ids $reviewerGroupId --org $adoOrg --project $adoProject ` --message $reviewerMessage

image


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

omerzubair avatar May 26 '22 00:05 omerzubair

Thank you for your feedback. This has been routed to the support team for assistance.

ghost avatar May 26 '22 00:05 ghost

route to CXP team

yonzhan avatar May 26 '22 00:05 yonzhan

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @v-anvashist, @V-hmusukula.

Issue Details

I was not able to find the switch to be able to uncheck the "Allow requestors to approve their own changes". There is no switch for update policy.

$requiredReviewer = az repos policy required-reviewer create --blocking true --branch "main" --branch-match-type "exact" --enabled true --repository-id $($repositoryid) --required-reviewer-ids $reviewerGroupId --org $adoOrg --project $adoProject ` --message $reviewerMessage

After creating the policy I also tried this code by supplying the PolicyID but no luck.

az repos policy approver-count update --creator-vote-counts false --allow-downvotes false --blocking true --reset-on-source-push true --repository-id $repositoryId --org $adoOrg --project $adoProject --enabled true ` --policy-id 422

I get ERROR: A policy configuration's policy type cannot be changed once set.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Author: omerzubair
Assignees: -
Labels:

Service Attention, customer-reported, DevOps

Milestone: -

ghost avatar May 27 '22 04:05 ghost

Adding the Service team for the Devops issue.

@v-anvashist, @V-hmusukula. Could you please look into this issue and provide an update once you get a chance ?

navba-MSFT avatar May 27 '22 04:05 navba-MSFT

Thank you for your feedback. This has been routed to the support team for assistance.

any update?

omerzubair avatar May 31 '22 21:05 omerzubair

similarly, this one needs attention from API team @v-anvashist?

omerzubair avatar Jun 14 '22 21:06 omerzubair

Hi @omerzubair, we dropped mail to API team and waiting for their response. we will get back to you once we received response from the API team.

Thanks!

v-soujanya avatar Jun 20 '22 08:06 v-soujanya

@omerzubair we received response from API team. They do have this covered in the REST API (Configurations - Create - REST API (Azure DevOps Policy) | Microsoft Docs). Parameter is named “creatorVoteCounts”. Can you check if this will be good enough?

v-soujanya avatar Jun 20 '22 11:06 v-soujanya

Hi @v-soujanya , thanks for your response. I will certainly try and revert back. cheers

omerzubair avatar Jun 22 '22 00:06 omerzubair

Hi, all! How can the creatorVoteCounts parameter be used in the AZ CLI to uncheck the "Allow requestors to approve their own changes"?

pachecolp avatar Mar 10 '23 14:03 pachecolp

Hey @v-soujanya Is there any update on this issue?

gpolcode avatar Aug 21 '23 13:08 gpolcode

@gpolcode Hi, we are owning only Azure CLI service and right now with Az CLI we don't have feasibility for this request. Just to help here I have raised the concern to the API team and posted the response. we received response from API team. They do have this covered in the REST API (Configurations - Create - REST API (Azure DevOps Policy) | Microsoft Docs). Parameter is named “creatorVoteCounts”. Can you check if this will be good enough? Please try it & let me know if that would work for you.

v-soujanya avatar Aug 22 '23 05:08 v-soujanya

owning only Azure CLI service and right now with Az CLI we don't have feasibility for this request. Just to help here I have raised the concern to the API team and posted the respo

Its a MS product and we are reliant on AzDO team to help us , so we can provide ability to the clients. Will really appreciate, if we AzDO team can add this highly requested item on the radar. its been 18 months already

omerzubair avatar Dec 13 '23 01:12 omerzubair

Is there any update on this issue?

gregory-ruch-duokey avatar Mar 27 '25 11:03 gregory-ruch-duokey

We also experience the same issue as the issue author: The AZ CLI lacks the CLI argument --creator-vote-counts {true, false} for command az repos policy required-reviewer create to enable or disable the completion option "Allow requestors to approve their own changes".

DevDavido avatar Jun 19 '25 11:06 DevDavido

@DevDavido please can you provide an email I can reach you via, need your help on something you posted on your blog

Intellect97 avatar Jul 19 '25 11:07 Intellect97