Changing target branch during merge request creation resets previous fields
Summary
I regularly have to create merge requests to a branch that is not the standard/default/master branch.
My observation is that, filling one fills out the merge request form (title, description) in vain, because changing the target branch resets these fields.
While this is usually obvious and a lot of time wasted for the Description field, it escapes my attention that the reset of the Title also resets the WIP status. In the case where a merge request consists of only one commit, the Title is already in good shape, and over the frustration that the work filling out the Description is lost, I leave the Title as is.
Steps to reproduce
Actually, when opening merge requests through the webpage, the problem is not so critical, as the first page after clicking on a "New merge request" button allows to select source and target branch.
BUT: when pushing to gitlab from the command line, I get output like this:
warning: redirecting to https://gitlab.cern.ch:8443/lhcb/HLT.git/
Counting objects: 6, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 642 bytes | 642.00 KiB/s, done.
Total 6 (delta 5), reused 0 (delta 0)
remote:
remote: To create a merge request for pseyfert_GP_cache, visit:
remote: https://gitlab.cern.ch/lhcb/Hlt/merge_requests/new?merge_request%5Bsource_branch%5D=pseyfert_GP_cache
remote:
To https://gitlab.cern.ch:8443/lhcb/HLT
* [new branch] pseyfert_GP_cache -> pseyfert_GP_cache
Filling out this page (top to bottom) I fill out
- Title
- WIP status
- Description
- Assignee
- Milestone
and here, my laptop screen ends.
Scrolling down I reach
- Approvers
- Source branch
- Target branch → Oh this needs to be changed → click "Change branches" → damage is done.
Example Project
I believe that's how I broke our nightly build here.
What is the current bug behavior?
Works filling out a merge request form is lost when changing target branch.
Setting target branch comes too late in the workflow
What is the expected correct behavior?
Well, I have to admit, the automatic filling of the Title field is nice, and repeating that when changing branches to be used has its advantage but the "WIP" flag should not be removed by change of the target branch.
I'm wondering if putting source and target branch of the top of the page (above the Title) is better.