Add ref selector dropdown to create mr(or branch) from issue modal
What does this MR do and why?
- Adds
ref_selectorcomponent to modal for creating mr/branch from issue to make it easier to select branches or tags without having to leave the page. - Updates the button labels on create merge request modal to say
Target BranchandSource branch nameinstead of sayingSource (branch or tag)andBranch namepreviously which was really confusing sinceSource branchwas actually a target branch while creating the MR. - Allow user to select branches only while doing create mr flow and allow branches and tags both while doing create branch flow. Previously using tag name to create merge request would cause error since tags cannot be used as source or target for creating merge request.
References
Screenshots or screen recordings
| Before | After |
|---|---|
|
CREATE MR FLOW CREATE BRANCH FLOW BEFORE CREATE MR FLOW VIDEO(WITH TAG NAME) |
CREATE MR FLOW CREATE BRANCH FLOW AFTER CREATE MR FLOW |
How to set up and validate locally
- Checkout branch and run gdk locally.
- Go to any project issue and click
Create merge requestorCreate branchbuttons. - Notice the new dropdown selector for branch and updated labels for input fields.



