I'm researching the ability to add some services on top of git web hosts (ie github, gitlab, bitbucket etc, I'm not even sure what they're called, I borrowed that term from the github wiki).
An example of what I'm trying to do is integrating a spreadsheet with one such git web host so that whenever a user adds a new row in a spreadsheet, an issue with the contents of that row is automatically created.
Naturally, these webhosts have different apis that perform these things. I can wrap them up with a facade or something but I will still need to know the kind of the webhost.
If the git repository is hosted on a cloud version of a webhost (ie Gitlab cloud or github, then knowing the kind of webhost is easy straight from the repo itself, for example this repo:
is obviously from github. However some of these providers offer users the ability to install their gihtub hosting service on their own machines.. so for example I can have gitlab installed on my aws machine, and so the above version control will look like this:
How can I know what kind of git webhost is associated with a repo of it's installed on a user server rather than the cloud of the provider them self?