Change ‘Create Merge Request’ button to ‘View Merge Request’ if a MR has already been submitted on a branch
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
If you are working on a fork with a high traffic of MR. If you click on a branch where you already submitted a MR, it will give you the option to Create a Merge Request. Once you click on it states Cannot Create: This merge request already exists: ["Change validation"]
Steps to reproduce
- Push a branch to repository.
- Navigate to my repository
- There is the button ‘Create Merge Request’, press the button and create new merge request(MR).
- Navigate back to the branch
- See the button ‘Create Merge Request’, which was already created in step 3.
Expected behavior
Show a different button which takes you to the MR that is already created or not show a button at all.
Actual behavior
The ‘Create Merge Request’ is shown and shows the error Cannot Create: This merge request already exists: ["Change validation"]
Relevant logs and/or screenshots
Edited by 🤖 GitLab Bot 🤖