Skip to content

Conversation

@danielasher115
Copy link

Description

Fixes Azure DevOps Work Item autolinks pointing to wrong project when the Work Item belongs to a different project in the same organization.

Work Items in Azure DevOps are organization-scoped, so autolink URLs should use org-level paths (https://dev.azure.com/org/_workitems/edit/1234) rather than project-scoped paths (https://dev.azure.com/org/Project/_workitems/edit/1234).

Closes #4776

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 #4776 - prefix to auto-close the issue that your PR addresses

@danielasher115 danielasher115 force-pushed the bug/fix-azure-workitem-cross-project-url branch from a038cdb to a383f3d Compare December 4, 2025 19:37
@danielasher115 danielasher115 force-pushed the bug/fix-azure-workitem-cross-project-url branch from a383f3d to 2f028d2 Compare December 4, 2025 19:39
@eamodio eamodio requested review from Copilot and sergeibbb December 5, 2025 08:19
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes Azure DevOps Work Item autolinks to use organization-scoped URLs instead of project-scoped URLs. Work Items in Azure DevOps are organization-scoped, meaning an autolink should point to https://dev.azure.com/org/_workitems/edit/1234 rather than https://dev.azure.com/org/Project/_workitems/edit/1234 to ensure Work Items from different projects within the same organization are correctly linked.

Key Changes:

  • Modified the issueLinkPattern method to generate organization-level URLs for Azure DevOps Work Items
  • Added contributor attribution and changelog entry

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/git/remotes/azure-devops.ts Updated issueLinkPattern to return organization-scoped URLs instead of project-scoped URLs
README.md Added contributor attribution for Daniel Asher
CHANGELOG.md Added entry documenting the fix for issue #4776

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


### Fixed

- Fixes [#4776](https://github.com/gitkraken/vscode-gitlens/issues/4776) Azure DevOps Work Item autolinks pointing to wrong project when the Work Item belongs to a different project in the same organization — thanks to [PR #4777](https://github.com/gitkraken/vscode-gitlens/pull/4777) by Daniel Asher ([@danielasher115](https://github.com/danielasher115))
Copy link

Copilot AI Dec 5, 2025

Choose a reason for hiding this comment

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

The changelog entry references a PR number (#4777) that may not exist yet since this appears to be the PR being reviewed. Consider using a placeholder or removing the PR reference until the PR number is confirmed.

Suggested change
- Fixes [#4776](https://github.com/gitkraken/vscode-gitlens/issues/4776) Azure DevOps Work Item autolinks pointing to wrong project when the Work Item belongs to a different project in the same organization — thanks to [PR #4777](https://github.com/gitkraken/vscode-gitlens/pull/4777) by Daniel Asher ([@danielasher115](https://github.com/danielasher115))
- Fixes [#4776](https://github.com/gitkraken/vscode-gitlens/issues/4776) Azure DevOps Work Item autolinks pointing to wrong project when the Work Item belongs to a different project in the same organization — thanks to [PR #xxxx] by Daniel Asher ([@danielasher115](https://github.com/danielasher115))

Copilot uses AI. Check for mistakes.
@sergeibbb sergeibbb self-assigned this Dec 5, 2025
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

2 participants