Allow to set target project when creating a merge request using push options
Problem to solve
- Given a forked repo (with existing fork relationship)
- When you now create a merge request via the push options, you cannot select the target project. the upstream repo is always used and you cannot change it.
- However, you might want to create a simple merge request within your project at hand (i.e. to merge branches internally without affecting the upstream repo)
- Currently, this is only possible within the UI
Proposal
- Add a new push option "-o merge_request.target_project" which allows to set the target project
git push -o merge_request.create -o merge_request.target_project=my_project -o merge_request.target=my_target_branch my_source_branch
Edited by Sebastian S.