You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
in MacheteClient.retarget_pull_request add a call to self.code_hosting_client.link_dependent_pull_requests(..., ...) after a call to self.code_hosting_client.set_base_of_pull_request
Lemme know if you need any assistance! and pls remember to open a PR to develop (not master)
Uh oh!
There was an error while loading. Please reload this page.
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.
git-machete/git_machete/client.py
Lines 2931 to 2932 in 140e278
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?
The text was updated successfully, but these errors were encountered: