-
-
Notifications
You must be signed in to change notification settings - Fork 46
Description
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