Automatically created MR uses wrong target branch
Summary
Using the new source branch picker via the "Create merge request" button on the issue screen (#21143 (closed)) is very convenient if changes need to be branched off of and subsequently merged back into any branch other than your default branch. Even though this feature now adds the ability to choose a custom source branch, when it creates the merge request automatically, it sets the target branch to the default branch. It should set the target branch to the chosen source branch.
Steps to reproduce
- Create issue
- Click dropdown and choose a non-default branch as your source branch (see: screenshot)
- Go to the automatically created merge request
- See that the target branch is set to the default branch, not the chosen source branch
Example Project
https://gitlab.com/wescossick/demonstrate-target-branch-bug/
What is the current bug behavior?
Target branch for newly created MR is the default branch.
What is the expected correct behavior?
Target branch for newly created MR is the chosen source branch.
Relevant logs and/or screenshots
N/A
Output of checks
This bug happens on GitLab.com