hosted-git-info
hosted-git-info copied to clipboard
This package cannot handle Gitlab subgroups
"repository": {
"type": "git",
"url": "[email protected]:GROUP/SUBGROUP/REPO.git"
},
The tool breaks and uses the unknownHostInfo if you have a subgroup.
Also similar: https://github.com/npm/hosted-git-info/issues/39
I think this issue should be re-titled, closed, and consolidated into #39. The OP requires an intersection of features for parsing "[email protected]:GROUP/SUBGROUP/REPO.git": both enterprise, self-hosted gitlab urls and gitlab subgroups would need to be supported. The title only mentions the latter, which has been listed as resolved in #56 and #43.
I confirm that on my machine, Mac OS Ventura 13.1 with npm 9.2.0 and node version 19.3.0, Gitlab subgroups are supported in hosted-git-info version 6.1.1:
hostedGitInfo = requires("hosted-git-info")
hostedGitInfo.fromUrl("[email protected]:company/department/project.git")
returns a GitHost object.