-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Fixes #4776 - Azure DevOps Work Item autolinks point to wrong project #4777
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
base: main
Are you sure you want to change the base?
Fixes #4776 - Azure DevOps Work Item autolinks point to wrong project #4777
Conversation
a383f3d to
2f028d2
Compare
There was a problem hiding this 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
issueLinkPatternmethod 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)) |
Copilot
AI
Dec 5, 2025
There was a problem hiding this comment.
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.
| - 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)) |
d864939 to
aae23cc
Compare
jokicdanijel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kk
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
Fixes #4776 -prefix to auto-close the issue that your PR addresses