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

Fix commit url for Azure Devops repos #185

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AchimStuy
Copy link

@AchimStuy AchimStuy commented Oct 30, 2023

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.

string CombinedRepositoryUrlAndCommit {
get {
if (RepositoryUrl.StartsWith ("https://dev.azure.com/"))
return RepositoryUrlWithoutGit + "?version=GC" + RepositoryCommit;
Copy link
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
Author

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

@AchimStuy
Copy link
Author

AchimStuy commented Nov 1, 2023

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