Skip to content

Add "merge when checks pass" to available strategies

Martin Čavoj requested to merge 407352-mwpsa-4 into master

What does this MR do and why?

This MR adds the service for "merge when checks pass" strategy to available strategies and allows the strategy to be used by frontend by setting auto_merge_strategy param. The strategy availability is behind a feature flag merge_when_checks_pass.

It sets the new strategy backend-wise as preferred over merge_when_pipeline_succeeds, although frontend still sends merge_when_pipeline_succeeds. This will be changed in a follow-up MR.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #407352 (closed) and #8128 (closed)

Edited by Martin Čavoj

Merge request reports