GitLink icon indicating copy to clipboard operation
GitLink copied to clipboard

Azure DevOps Links not working

Open StefanLobbenmeier opened this issue 3 years ago • 2 comments

I tried making this plugin work with our azure devops project, but it seems to generate the wrong urls: image

This is the url it generates: https://ssh.dev.azure.com/v3/companyname/companyname.de/companyname-client?version=GBbranchname&path=/README.md&line=1&lineEnd=1&lineStartColumn=1&lineEndColumn=1

That is the link I get manually when copying from azure https://dev.azure.com/companyname/companyname.de/_git/companyname-client.git?path=/README.md&version=GBbranchname&line=1&lineEnd=2&lineStartColumn=1&lineEndColumn=1&lineStyle=plain&_a=contents

I cloned the project via ssh, so maybe this is not supported?

StefanLobbenmeier avatar Sep 05 '22 11:09 StefanLobbenmeier

What does your remote configuration show? $ git remote -v

ben-gibson avatar Sep 05 '22 11:09 ben-gibson

origin  [email protected]:v3/companyname/companyname.de/companyname-client.git (fetch)
origin  [email protected]:v3/companyname/companyname.de/companyname-client.git (push)

StefanLobbenmeier avatar Sep 05 '22 11:09 StefanLobbenmeier

Are there self hosted options or custom domain support in Azure? If not, this could be as simple as just assuming https://dev.azure.com/ as the host.

ben-gibson avatar Oct 15 '22 10:10 ben-gibson

I don’t have a self-hosted repo and also have the same difference in the url: an extra ssh. and v3 Maybe it creates a different url when the repo is cloned using ssh?

cjoecker avatar Oct 16 '22 07:10 cjoecker

Possibly fixed in the latest version 4.2.3 🤞🤞

ben-gibson avatar Oct 16 '22 16:10 ben-gibson

Thanks I will try tomorrow ❤️

StefanLobbenmeier avatar Oct 16 '22 18:10 StefanLobbenmeier

It is almost right, I think it is missing a .git at the end of the url:

https://dev.azure.com/companyname/companyname.de/_git/projectname?httpParams

is being generated, but I manually have to change it to

https://dev.azure.com/companyname/companyname.de/_git/projectname.git?httpParams

Otherwise it says

Repository "projectname" not found

image

StefanLobbenmeier avatar Oct 17 '22 08:10 StefanLobbenmeier

Does this work now on v4.2.4?

ben-gibson avatar Oct 22 '22 17:10 ben-gibson

I will give it a shot on Monday :smile: thanks

StefanLobbenmeier avatar Oct 22 '22 17:10 StefanLobbenmeier

I tried it and it works, thanks a lot!!

cjoecker avatar Oct 22 '22 18:10 cjoecker

Sorry did not get the plugin update yesterday, but today I was able to update and I can also confirm the bug to be fixed :) thank you very much ❤️

StefanLobbenmeier avatar Oct 25 '22 08:10 StefanLobbenmeier