Check for existing merge requests for a source branch during compare

Problem to solve

Currently, when you create a merge request using /merge_requests/new that compares branches as a prior step, you can continue filling out the form on the new merge request and you will get an error if there's an existing merge request for a source branch upon clicking Submit merge request, which will discard all the form data like merge request title, description, etc.

Before compare After submit
merge-request-before-compare merge-request-after-submit

Proposal

When there's an existing merge request for a source branch, you should get the error upon clicking Compare branches and continue.

Edited Jun 18, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading