Skip to content

Project.repository_merge_base([...]) with forks (remotes) #2883

Answered by JohnVillalovos
zerothi asked this question in Q&A
Discussion options

You must be logged in to vote

First thing I would do is look at the upstream documentation:

https://docs.gitlab.com/ee/api/repositories.html#merge-base

From my quick glance I don't think it will work how you hope. I believe it only takes refs aka SHA values.

One thing that might be helpful for debugging is:
target.pprint() that should print out all the values in the object. Which can be helpful. All the Python GitLab objects support pprint(), pformat(), to_json(), and asdict(). Depending on the situation they can be useful in debugging code.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zerothi
Comment options

Answer selected by zerothi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants