Skip to content

Commit 7c3758b

Browse files
JordonKashsergeibbb
authored andcommitted
Fixes #4207 - Incorrect PR Link Across Azure DevOps Projects
1 parent 0266c19 commit 7c3758b

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1212

1313
### Changed
1414

15-
- Improves editor revision navigation ([#4200](https://github.com/gitkraken/vscode-gitlens/issues/4200))
15+
- Improves editor revision navigation ([#4207](https://github.com/gitkraken/vscode-gitlens/issues/4207))
16+
17+
### Fixed
18+
19+
- Fixes Incorrect PR Link Across Azure DevOps Projects ([#3218](https://github.com/gitkraken/vscode-gitlens/issues/3218))
1620

1721
## [17.0.1] - 2025-04-03
1822

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ A big thanks to the people that have contributed to this project 🙏❤️:
444444
- Jean Pierre ([@jeanp413](https://github.com/jeanp413)) — [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=jeanp413)
445445
- Dawn Hwang ([@hwangh95](https://github.com/hwangh95)) — [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=hwangh95)
446446
- Emmanuel Ferdman ([@emmanuel-ferdman](https://github.com/emmanuel-ferdman)) — [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=emmanuel-ferdman)
447+
- Jordon Kashanchi ([@jordonkash](https://github.com/JordonKash)) — [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=jordonkash)
447448

448449
Also special thanks to the people that have provided support, testing, brainstorming, etc:
449450

src/plus/integrations/providers/azure/azure.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export class AzureDevOpsApi implements Disposable {
105105
const pr = prResult?.value.find(pr => pr.sourceRefName.endsWith(branch));
106106
if (pr == null) return undefined;
107107

108-
return fromAzurePullRequest(pr, provider, owner, projectName);
108+
return fromAzurePullRequest(pr, provider, owner);
109109
} catch (ex) {
110110
Logger.error(ex, scope);
111111
return undefined;

src/plus/integrations/providers/azure/models.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,6 @@ export function fromAzurePullRequest(
476476
pr: AzurePullRequest,
477477
provider: Provider,
478478
orgName: string,
479-
projectName: string,
480479
): PullRequest {
481480
const url = new URL(pr.url);
482481
return new PullRequest(
@@ -531,7 +530,7 @@ export function fromAzurePullRequest(
531530
undefined,
532531
{
533532
id: pr.repository?.project?.id,
534-
name: projectName,
533+
name: pr.repository.project.name,
535534
resourceId: '', // TODO: This is a workaround until we can get the org id here.
536535
resourceName: orgName,
537536
},

0 commit comments

Comments
 (0)