devops-center-feedback icon indicating copy to clipboard operation
devops-center-feedback copied to clipboard

Devops center Branch protections

Open SowjanyaAReddit opened this issue 2 years ago • 2 comments

We have enabled branch protections and are trying to deploy code via Devops center. But whenever we try to push the approved branch we are receiving following error. again the branch was approved by code owner.

@matthewpomar-at-reddit

image (2)

SowjanyaAReddit avatar Apr 04 '23 17:04 SowjanyaAReddit

Waiting on code owner review ;) If setup correctly there should be no issues.

fmannreply avatar Dec 05 '23 17:12 fmannreply

Hello we encounter kind of similar issue : Capture d’écran 2024-03-18 à 17 56 19

  • We protected our integration branch. It requires a review to be accepted. To allow this behavior we need to enable pull request required.

  • Even when the pull request is approved the push is rejected. I took a look on sf_devops__Remote_Commands__c of the async_operation_result and I saw this : Capture d’écran 2024-03-18 à 18 00 27

So devops is merging the work item outside of github and simply push on the branch which is forbidden by the rule.

Our workaround is to merge the pull request in github the complete promotion on devops but it is sometimes tricky.

sly-zeplug avatar Mar 18 '24 17:03 sly-zeplug