Skip to content

Refactor the available_for methods for auto merge

Marc Shaw requested to merge refactor_merge_when_x_pass_4 into master

What does this MR do and why?

This refactor allows us to reuse existing methods and to clean up when auto merge strategies are available.

This feature is currently not turned on, and will require another manual testing before being turned back on. We currently have a discussion in #443371 (comment 1806437323) that needs to be resolved before doing so.

To Test:

  • Turn on the feature flags merge_when_checks_pass, additional_merge_when_checks_ready and refactor_auto_merge
  • Ensure that auto merge is available for when:
    • Draft
    • Open Discussions
    • Pipeline fail
    • Blocked
    • Not Approved
    • External Status
Edited by Marc Shaw

Merge request reports