Skip to content

Create new branch and empty WIP merge request from issue page

Resources

PM @victorwu | UX @pedroms and @dimitrieh | FE @alfredo1

Design

  • The existing New branch button will be replaced by a "combo" Create merge request button
  • The Create merge request button will have an option (caret) side button, that shows the option to Create branch. The default is Create merge request.
  • When clicking Create merge request, the system will create the merge request behind the scenes, and the user will automatically be redirected to the newly created merge request view
    • The merge request title will be WIP: <issue title>.
    • The merge request author will be the user who clicked the button.
    • All the other fields of the merge request will be as if it were created normally. So all the other fields would be their default.
  • For the Create merge request button, a tooltip saying Creates a merge request and a branch named after this issue. The source branch is ‘master’ by default. The source branch name should be the one that is set as default in the project's settings.
  • The Create branch option will continue to function as it does now (redirect user to repository branch view)
    • For the Create branch dropdown option, a description under it saying Creates a new branch named after this issue and its source branch is ‘master’ by default The source branch name should be the one that is set as default in the project's settings.
  • If the project has merge requests disabled, only the Create branch button should appear. (i.e. no dropdown whatsoever).

image

similar to https://gitlab.com/gitlab-org/gitlab-ce/issues/24378

(Future) upgrades to this: