Requestors approving their own changes in Azure DevOps

Viewed 305

I am attempting to set up branch policies in Azure DevOps where the master branch is locked down from pushed other than Pull Requests. I have the following Branch Policies set: enter image description here

However, I am still getting the following message on the PR when attempting to approve myself:

enter image description here

I believe based on the branch policy I should be able to approve that Pull Request. I found some issues online from a few years ago that apparently had a fix pushed to Azure DevOps. How can I approve my own change?

1 Answers

How can I approve my own change?

The root cause of this question is the option: When new changes are pushed: ->Require at least one approval on the last iteration

You could change your branch policy: When new changes are pushed: -> Reset all code reviewer votes

enter image description here

Then you could approve your pull request and complete it successfully.

Related