ValentinFrancois / python-gitlab-submodule

List project submodules and get the commits they point to with python-gitlab
Apache License 2.0
3 stars 3 forks source link

multiple self managed hosts #27

Open dyitzchaki-roku opened 3 weeks ago

dyitzchaki-roku commented 3 weeks ago

In my work we have more than one self managed gitlab hosts used in a single project. Can you please support passing a list of hosts?

ValentinFrancois commented 2 weeks ago

Hi! This should be already supported, although not properly documented and type-hinted.

See https://github.com/ValentinFrancois/python-gitlab-submodule/blob/main/gitlab_submodule/submodule_to_project.py#L65

dyitzchaki-roku commented 1 week ago

Thank you, I can confirm it works. Feel free to close the issue or leave it until this is documented.

dyitzchaki-roku commented 1 week ago

Oops, spoke too soon there. It actually only fetches submodules from the same host as the super project. I think this requires passing different Gitlab instances, one for every host.