Skip to content

Fix commit url for Azure Devops repos#185

Open
AchimStuy wants to merge 1 commit into
praeclarum:masterfrom
AchimStuy:master
Open

Fix commit url for Azure Devops repos#185
AchimStuy wants to merge 1 commit into
praeclarum:masterfrom
AchimStuy:master

Conversation

@AchimStuy

@AchimStuy AchimStuy commented Oct 30, 2023

Copy link
Copy Markdown

We are managing source code through Azure Devops. This uses another url scheme when browsing commits:

https://dev.azure.com/organization/project/_git/repo?version=GCcommit

instead of

https://github.com/user/project/tree/commit

See https://www.nuget.org/packages/Visi.Extensions as example.

Comment thread Data/PackageData.cs
string CombinedRepositoryUrlAndCommit {
get {
if (RepositoryUrl.StartsWith ("https://dev.azure.com/"))
return RepositoryUrlWithoutGit + "?version=GC" + RepositoryCommit;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your issue says version=GBcommit, but this has version=GCcommit; which is correct?

@AchimStuy

Copy link
Copy Markdown
Author

Silly me, sorry! It's GCcommit. Edited my PR description.

@AchimStuy

AchimStuy commented Nov 1, 2023

Copy link
Copy Markdown
Author

I just saw, where th GBcommit came from: We have an on premise Azure Devops Server. There the link is built with GBcommit. But https://dev.azure.com is definitely built with GCcommit.

No it's not. At on premise Azure Devops Server, it's also built with GCcommit. But GBbranch is used for branches.

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

Successfully merging this pull request may close these issues.

3 participants