I have a merge request and a source branch is already bound to it. Now I pushed another branch and want to change the merge request to be point to the new branch. Is that possible with gitlab-ce? If yes, how?
In essence, I want to use "Fast-forward merge" as merge method without being forced to force-push to the source branch.
Go to the pull request and click the ellipsis button and select Edit. From here you can change the target branch for the pr.
Sign in to GitLab as a user with Administrator permissions. In the left navigation menu, go to Settings > Repository. Expand Default branch, and select a new default branch. (Optional) Select the Auto-close referenced issues on default branch check box to close issues when a merge request uses a closing pattern.
Select the Start a new merge request with these changes checkbox or toggle. This checkbox or toggle is visible only if the target is not the same as the source branch, or if the source branch is protected. Select Commit changes.
No, regarding https://gitlab.com/gitlab-org/gitlab-foss/-/issues/47020 this is unfortunately not possible. The statement is from last year, but it seems that there were no changes in supporting this for now.
To not loose the discussion completely, you can link the old MR in the new MR. With that you at least have some indirect relation to the discussion.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With