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:
Here's the develop branch's Policies:
Here's what I see when I try to complete a pull request after approving it:
Here's the error message:
Thanks
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.
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.
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.
This also used for the situation that PR is not created by you, and you are member of project administrators. Below is steps:
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.
In the pull request, complete pull request by selecting Override branch policies and enable merge -> Override & Complete.
Clear explicit permissions and save changes.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With