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 buttonwill be replaced by a "combo"Create merge requestbutton - The
Create merge requestbutton will have an option (caret) side button, that shows the option toCreate branch. The default isCreate 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.
- The merge request title will be
- For the
Create merge requestbutton, a tooltip sayingCreates 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 branchoption will continue to function as it does now (redirect user to repository branch view)- For the
Create branchdropdown option, a description under it sayingCreates a new branch named after this issue and its source branch is ‘master’ by defaultThe source branch name should be the one that is set as default in the project's settings.
- For the
- If the project has merge requests disabled, only the
Create branchbutton should appear. (i.e. no dropdown whatsoever).
similar to https://gitlab.com/gitlab-org/gitlab-ce/issues/24378
(Future) upgrades to this:
-
https://gitlab.com/gitlab-org/gitlab-ce/issues/29320 Improve empty state on merge request widget by showing the user a way to begin creating content
- CLI option
- new file gui option
- nice drawing
-
https://gitlab.com/gitlab-org/gitlab-ce/issues/27799 When clicking
Create branchbutton, it will no longer redirect the user to the repository branch view, but in stead will stay on the issue page showing a banner with the options:- View branch
- Create new file
- Setup auto-deploy if applicable?
- https://gitlab.com/gitlab-org/gitlab-ce/issues/21143
