-
Notifications
You must be signed in to change notification settings - Fork 33
Fix Azure DevOps compare URL for changelog generation with support for all URL patterns #82
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
Merged
+167
−0
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Copilot stopped work on behalf of
marcocesarato due to an error
October 14, 2025 18:48
@copilot add others patterns if exists |
Added support for all Azure DevOps URL patterns:
All patterns tested and working correctly. Commit: d11e0ea → (latest) Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Copilot finished work on behalf of
marcocesarato
October 14, 2025 18:58
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes the Azure DevOps compare URL generation issue. The changes automatically detect Azure DevOps repositories and apply the correct URL formats for all Azure DevOps variants including modern, legacy, and on-premises deployments.
Before (incorrect):
After (correct):
Supported Azure DevOps URL Patterns
The library now supports 6 different Azure DevOps URL patterns:
https://dev.azure.com/{org}/{project}/_git/{repo}
git@ssh.dev.azure.com:v3/{org}/{project}/{repo}
https://{org}.visualstudio.com/{project}/_git/{repo}
https://{org}.visualstudio.com/{collection}/{project}/_git/{repo}
{org}@vs-ssh.visualstudio.com:v3/{org}/{project}/{repo}
https://{server}/{collection}/{project}/_git/{repo}
Key Changes
Repository::parseRemoteUrl()
to correctly extract organization, project, and repository for all Azure DevOps variantsChangelog
constructorssh.dev.azure.com
→dev.azure.com
,vs-ssh.visualstudio.com
→visualstudio.com
) for web URLs{org}.{host}
format) vs dev.azure.com ({host}/{org}
format)Fixes #81
Original prompt
Fixes #81
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.