Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sagilaufer1992 opened this issue Apr 24, 2023 · 0 comments

Comments

@sagilaufer1992
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant