Skip to content

Do not call mergeable_discussions_state? if MR is not mergeable

What does this MR do?

MergeRequest#mergeable_discussions_state? is not the cheapest method at the moment (5ms-12ms on my local machine). At the same time we don't need to call it if the MR is not mergeable. What about calling it conditionally?

Merge request reports