add support for Azure DevOps platform in SCM detection and link (#1807)

* feat: add support for Azure DevOps platform in SCM detection and link generation

* feat: add support for visualstudio.com in Azure DevOps platform detection

* feat: consolidate Azure DevOps platform detection for dev.azure.com and visualstudio.com
This commit is contained in:
Joost Voskuil authored and GitHub committed 2025-03-31 08:38:08 -05:00
1 parent 3e8cd2d1ab
commit af7d5bcb83
4 files changed
+44

No files matched your search

+2
View File
@@ -171,6 +171,8 @@ func platformFromHost(u *url.URL) scm.Platform {
return scm.GitHubPlatform
case "gitlab.com":
return scm.GitLabPlatform
case "dev.azure.com", "visualstudio.com":
return scm.AzureDevOpsPlatform
default:
return scm.UnknownPlatform
}