Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

This pull request requires an explicit override to bypass policies that aren't currently passing

My company is using VSTS with git. I'm trying to complete a pull request to update translation strings. In our develop branch we have Branch policies set to require 2 approvals before a pull request can be completed.

Normally for the translation string pull requests I've been bypassing the two approval branch policy by temporarily making the MyRepository Administrators group Exempt from policy enforcement and then Clearing the explicit permissions on the develop branch immediately after completing the pull request for the translation strings.

Starting about last week this is no longer working. When I try to complete the pull request I see a message that says: "This pull request requires an explicit override to bypass policies that aren't currently passing."

Any idea what's changed? I don't see any way to do an explicit override, does anyone know how to do this? I haven't found anything useful searching the web.

Here's the develop branch's security settings: Screenshot of develop branch security

Here's the develop branch's Policies: enter image description here

Here's what I see when I try to complete a pull request after approving it:

enter image description here

Here's the error message:

enter image description here

Thanks

like image 912
Eric Avatar asked Feb 21 '17 18:02

Eric


People also ask

How do I override a Pull Request?

In the navigation pane, choose Pull requests. Choose the pull request where you want to override approval rule requirements, or revoke an override. On the Approvals tab, choose Override approval rules. The requirements are set aside, and the button text changes to Revoke override.

How do I override Pull Request Azure DevOps?

With your new-found security, you will also have a section for Policy override options. To proceed and bypass the policies check the Override branch policies and enable merge checkbox, enter your reason for overriding, and click the Override and complete button.

How do I enable pull requests in Azure DevOps?

From the Pull Requests view, select New Pull Request. Select the source and target branches, enter a title and optional description, and select Create. After the PR is created, select Open in browser to open the new PR in the Azure DevOps web portal.


1 Answers

This also used for the situation that PR is not created by you, and you are member of project administrators. Below is steps:

  1. In https://account.visualstudio.com/projectname/_admin/_versioncontrol, select the repo and branch you want to use bypass police -> select Project Administrators -> set Exempt from policy enforcement allow -> save changes. enter image description here

  2. In the pull request, complete pull request by selecting Override branch policies and enable merge -> Override & Complete. enter image description here

  3. Clear explicit permissions and save changes. enter image description here

  4. For later pull request, if need bypass policy, you can set same as above steps.

Your screen shot of complete pull request seems approved at least by 2 reviewers since it not shows the notice message.

like image 51
Marina Liu Avatar answered Sep 19 '22 14:09

Marina Liu