Skip to content

Conversation

@sergeibbb
Copy link
Member

Description

Fixes #4776. It's based on user's PR #4777 with a little improvements.

The difference with the original PR: it stops relying on isVsts method to form the resulting link. Instead, it transforms the repository's baseUrl properly by removing the project name from it.

Checklist

  • I have followed the guidelines in the Contributing document
  • My changes follow the coding style of this project
  • My changes build without any errors or warnings
  • My changes have been formatted and linted
  • My changes include any required corresponding changes to the documentation (including CHANGELOG.md and README.md)
  • My changes have been rebased and squashed to the minimal number (typically 1) of relevant commits
  • My changes have a descriptive commit message with a short title, including a Fixes $XXX - or Closes #XXX - prefix to auto-close the issue that your PR addresses

@augmentcode
Copy link

augmentcode bot commented Dec 23, 2025

🤖 Augment PR Summary

Summary: Adjusts Azure DevOps work item autolinks to use the organization URL (rather than the repo’s project URL) so work items in other projects resolve correctly.

Changes: Updates AzureDevOpsRemote.issueLinkPattern URL derivation, and adds a changelog entry + contributor credit.

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

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

Review completed. 1 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

Stops relying on isVsts method in forming the resulting link. Instead,
it transforms the repository's baseUrl properly by removing the project
name from it.
(#4776, #4777, #4837)
@sergeibbb sergeibbb force-pushed the bug/fix-azure-workitem-cross-project-url branch from 02c2589 to eadca89 Compare December 23, 2025 15:48
@sergeibbb
Copy link
Member Author

Hi @eamodio and @d13.

It's an improved version of user's PR #4447.

The only difference is this commit, where I always form the URL based on the repository's baseUrl, instead of building it from primitive fields based on various patterns. By doing that I stop relying on isVsts method and stop requiring knowledge of different URL structures.

Could you please look at my commit and approve or decline this approach.

Also I've tested the result for Azure DevOps Cloud (both for visualstudio.com and dev.azure.com URLs) and for Azure DevOps Server. The steps are reflected in the "Verification steps" section of the issue.

@sergeibbb sergeibbb requested review from d13 and eamodio December 23, 2025 16:03
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.

Azure DevOps Work Item autolinks point to wrong project when Work Item belongs to a different project

3 participants