Skip to content

Commit a383f3d

Browse files
Fixes #4776 - Azure DevOps Work Item autolinks point to wrong project
1 parent 2c790db commit a383f3d

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1515
- Changes _rebase_, _merge_, _revert_, and _branch delete_ commands no longer use/open a terminal ([#3527](https://github.com/gitkraken/vscode-gitlens/issues/3527), [#3530](https://github.com/gitkraken/vscode-gitlens/issues/3530), [#3532](https://github.com/gitkraken/vscode-gitlens/issues/3532), [#3534](https://github.com/gitkraken/vscode-gitlens/issues/3534))
1616
- Improves telemetry tracking for hover actions by adding source and detail attributes to events from editor hovers ([#4764](https://github.com/gitkraken/vscode-gitlens/issues/4764))
1717

18+
### Fixed
19+
20+
- 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))
21+
1822
## [17.7.0] - 2025-11-11
1923

2024
### Added

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ A big thanks to the people that have contributed to this project 🙏❤️:
447447
- Jordon Kashanchi ([@jordonkash](https://github.com/JordonKash)) — [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=jordonkash)
448448
- JounQin ([@JounQin](https://github.com/JounQin)) — [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=JounQin)
449449
- Noritaka Kobayashi ([@noritaka1166](https://github.com/noritaka1166)) — [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=noritaka1166)
450+
- Daniel Asher ([@danielasher115](https://github.com/danielasher115)) — [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=danielasher115)
450451

451452
Also special thanks to the people that have provided support, testing, brainstorming, etc:
452453

src/git/remotes/azure-devops.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ export class AzureDevOpsRemote extends RemoteProvider {
7070
}
7171

7272
protected override get issueLinkPattern(): string {
73-
const workUrl = this.baseUrl.replace(gitRegex, '/');
74-
return `${workUrl}/_workitems/edit/<num>`;
73+
if (isVsts(this.domain)) {
74+
return `${this.protocol}://${this.domain}/_workitems/edit/<num>`;
75+
}
76+
return `${this.protocol}://${this.domain}/${this.owner}/_workitems/edit/<num>`;
7577
}
7678

7779
private _autolinks: (AutolinkReference | DynamicAutolinkReference)[] | undefined;

0 commit comments

Comments
 (0)