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

Add support for Azure DevOps url scheme #1462

Closed
friggog opened this issue Nov 5, 2020 · 0 comments · Fixed by #1471
Closed

Add support for Azure DevOps url scheme #1462

friggog opened this issue Nov 5, 2020 · 0 comments · Fixed by #1471

Comments

@friggog
Copy link
Contributor

friggog commented Nov 5, 2020

Would be nice to have support for URL links when hosting code on Azure DevOps

They are of the form:
https://dev.azure.com/ORG/TEAM/_git/REPO?path={path}&version={commit}&line={line_low}&lineEnd={line_high}&lineStartColumn=1&lineEndColumn=1&lineStyle=plain

The {line} one is easy: https://dev.azure.com/ORG/TEAM/_git/REPO?path={path}&version={commit}{line}&lineStartColumn=1&lineEndColumn=1&lineStyle=plain with LineRangeFormatting("&line=", "&lineEnd=")

The commit is a bit harder... ADO annoyingly prefixes the hash with "GC" or a branch name with "GB" - so this would need a special check.

I can take a crack at doing a PR for this if that would be helpful?

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