Refactor the available_for methods for auto merge
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
andrefactor_auto_merge
- Ensure that auto merge is available for when:
- Draft
- Open Discussions
- Pipeline fail
- Blocked
- Not Approved
- External Status
Edited by Marc Shaw