Skip to content

Fix an issue when the target branch of a MR had been deleted

Rémy Coutable requested to merge fix/14388 into master

Before displaying the "diverged commits" note, we're checking if the MR is open, but we should check if it's mergeable instead because this check ensure the source and target branches exist.

This was introduced by !2217 (merged) and fixes #14388 (closed).

Merge request reports