Skip to content

Old domain name url for Azure DevOps git repositories are not parsed correctly #158

@sagilaufer1992

Description

@sagilaufer1992

On September 2018, MS introduced a new URL format for organizations: https://learn.microsoft.com/en-us/azure/devops/release-notes/2018/sep-10-azure-devops-launch#switch-existing-organizations-to-use-the-new-domain-name-url

Since then urls for git repositories are looking like - https://dev.azure.com/<organization name>/<project name>/_git/<repository name>
running gitUrlParse on this format would result in:

{
...
name: <repository name>
owner: <project name>
organization: <organization name>
...
}

However, if the format for the same repository URL would have been kept as the old format, i.e. -https://<organization name>.visualstudio.com/<project name>/_git/<repository name>, running gitUrlParse on this format would result in:

{
...
name: <repository name>
owner: <project name>
organization: undefined
...
}

The organization should be parsed correctly, as there are still active repositories that use the old format, that is still supported

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions