git-machete icon indicating copy to clipboard operation
git-machete copied to clipboard

Support GitLab "dependent merge request" feature

Open bagedevimo opened this issue 8 months ago • 1 comments

GitLab's merge requests support depending on another merge request as a core aspect of the PR. It can only be added after both MRs have been created, as seperate API call, similar to how dependant descriptions are updated in the existing client.py.

https://github.com/VirtusLab/git-machete/blob/140e2785a2d01b06edd735b822433a753f012acd/git_machete/client.py#L2931-L2932

https://docs.gitlab.com/api/merge_requests/#create-a-merge-request-dependency is the relevant API call, and it looks like it would be safe to call to even if the existing dependency exists as it returns 409 in this case.

I'd be willing to give this a go, but I have no idea how to handle this in the client.py such that it's be generic across Github / GitLab?

bagedevimo avatar Feb 23 '25 02:02 bagedevimo