[go: up one dir, main page]

Skip to content

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

  1. Push a branch to repository.
  2. Navigate to my repository
  3. There is the button ‘Create Merge Request’, press the button and create new merge request(MR).
  4. Navigate back to the branch
  5. 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

Option to create a MR when one has already been created. Screen_Shot_2016-12-20_at_2.04.45_PM

Edited by 🤖 GitLab Bot 🤖