Skip to content

Update API status code if merge request is not mergeable and fix mergeable_discussions_state status check

What does this MR do and why?

We move the methods from mergeble? to the mergeable_state? because these checks are more about the state and it will allow us to move them to the new framework easier too. This doesn't change the functionality as mergeable? method calls mergeable_state? method too.

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 #354865 (closed)

Feature flag roll out: #356930 (closed)

Edited by Jan Provaznik

Merge request reports

Loading