Fix: Update createBranch path with a new value
What does this MR do and why?
Contributes to #299500 (closed)
Problem
Create merge request button on issue page does not work when user provides / in the branch name.
frontend sends a default branch name to the backend instead of the value that user has provided.
How to set up and validate locally
- Open "Issues" in sidebar for a project
- Locate an existing issue or create one from scratch
- Click on disclosure arrow next to "Create merge request"
- Choose "Create merge request and branch"
- Type in a new branch name containing a slash, like "ABC/XYZ"
- Choose a source branch name containing a slash, like "release/1.0.0"
- Click on "Create merge request button"
- Merge request and branch will be created
- Branch name is the default suggested branch name instead of the one typed in
- The "merge target" is also the default suggested branch ("master" or "main") instead of the one selected
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Vasilii Iakliushin