ben-gibson / GitLink

A Jetbrains plugin that opens a local file under Git version control in its remote host using the default browser.
https://plugins.jetbrains.com/plugin/8183-gitlink
MIT License
671 stars 58 forks source link

Azure commit link is broken #300

Closed gavvvr closed 11 months ago

gavvvr commented 1 year ago

GitLink plugin generates links of the following type on Azure commits:

https://dev.azure.com/commit/239d8931

It obviously won't work, because it has project/repo names missing and short commit hash also won't work out.

https://github.com/ben-gibson/GitLink/blob/3a5f97a271ba80bb1661dc7ae64c6ccc746fd283/src/test/kotlin/uk/co/ben_gibson/git/link/url/AzureTest.kt#L57-L60C15

In this test I would expect the following link produced:

https://dev.azure.com/ben-gibson/_git/test/commit/b032a0707beac9a2f24b1b7d97ee4f7156de182c


To reproduce: 1) Clone any Azure repo 2) Go to "Git Log" tab in Intellij 3) Right-click any commit and try "Open in Azure" or any other related command