Skip to content

Support subgroup in gitlab repo URL #7

Closed
@canercandan

Description

@canercandan

gitlab.com introduced in 9.0 the Subgroups (https://docs.gitlab.com/ce/user/group/subgroups/), from there on an user can create a repository within a subgroup, the URL will therefore looks like:

https://gitlab.com/GROUP/SUBGROUP/PROJECT

but it can also be nested with several (infinitely) chained subgroups:

https://gitlab.com/GROUP/SUBGROUP1/SUBGROUP2/SUBGROUP3/PROJECT

Issue identified first there: https://gitlab.com/hyper-expanse/semantic-release-gitlab-releaser/issues/5

FYI just reproduced the relevant error below:

> var parser = require('parse-github-repo-url')
undefined
> parser('[email protected]:GROUP/SUBGROUP/PROJECT.git')
false
> parser('[email protected]:GROUP/PROJECT.git')
[ 'GROUP', 'PROJECT', '' ]
> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions