Skip to content

Abort auto merges when the target branch of an MR is updated

What does this MR do and why?

Abort auto merges when the target branch is changed. We were noticing when a branch was merged, and we retarget the MR's onto the new target branch, if we were blocking, then the blocked MR's were getting merged into the wrong branch, and not the retargetted branch.

When a source branch is 'merged' into a target branch, then we should consider this as an update to the source branch, and the MR's that target this source branch should have their auto merge cancelled.

Related to #461198 (closed)

Edited by Marc Shaw

Merge request reports