Skip to content

Fix updating merge_when_build_succeeds via merge API endpoint

username-removed-444214 requested to merge mrchrisw-22740-merge-api into master

What does this MR do?

When updating a merge request via the /merge endpoint we check the mergeable and mergeable_state status, these will return false if the application option only_allow_merge_if_pipeline_succeeds is enabled. We should skip CI checks if the request uses the merge_when_pipeline_succeeds param

Are there points in the code the reviewer needs to double check?

  • specs

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Merge request reports