hosted-git-info icon indicating copy to clipboard operation
hosted-git-info copied to clipboard

This package cannot handle Gitlab subgroups

Open smzelek opened this issue 5 years ago • 2 comments

    "repository": {
        "type": "git",
        "url": "[email protected]:GROUP/SUBGROUP/REPO.git"
    },

The tool breaks and uses the unknownHostInfo if you have a subgroup.

smzelek avatar Oct 16 '19 16:10 smzelek

Also similar: https://github.com/npm/hosted-git-info/issues/39

gabemeola avatar Oct 21 '19 18:10 gabemeola

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.

dbrakman avatar Jan 04 '23 06:01 dbrakman