Skip to content

Commit 2b7ed4b

Browse files
Fixes Incorrect PR Link Across Azure DevOps Projects
* Fixes #4207 - Incorrect PR Link Across Azure DevOps Projects * Fixes a mistake in Changelog and prettifies the changed files (#4210, #4213) --------- Co-authored-by: Jordon Kashanchi <[email protected]>
1 parent 0266c19 commit 2b7ed4b

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1414

1515
- Improves editor revision navigation ([#4200](https://github.com/gitkraken/vscode-gitlens/issues/4200))
1616

17+
### Fixed
18+
19+
- Fixes Incorrect PR Link Across Azure DevOps Projects ([#4207](https://github.com/gitkraken/vscode-gitlens/issues/4207))
20+
1721
## [17.0.1] - 2025-04-03
1822

1923
### Added

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)) &mdash; [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=jeanp413)
445445
- Dawn Hwang ([@hwangh95](https://github.com/hwangh95)) &mdash; [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=hwangh95)
446446
- Emmanuel Ferdman ([@emmanuel-ferdman](https://github.com/emmanuel-ferdman)) &mdash; [contributions](https://github.com/gitkraken/vscode-gitlens/commits?author=emmanuel-ferdman)
447+
- Jordon Kashanchi ([@jordonkash](https://github.com/JordonKash)) &mdash; [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: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -472,12 +472,7 @@ function fromAzureUserToMember(user: AzureUser, _type: 'issue' | 'pullRequest'):
472472
};
473473
}
474474

475-
export function fromAzurePullRequest(
476-
pr: AzurePullRequest,
477-
provider: Provider,
478-
orgName: string,
479-
projectName: string,
480-
): PullRequest {
475+
export function fromAzurePullRequest(pr: AzurePullRequest, provider: Provider, orgName: string): PullRequest {
481476
const url = new URL(pr.url);
482477
return new PullRequest(
483478
provider,
@@ -531,7 +526,7 @@ export function fromAzurePullRequest(
531526
undefined,
532527
{
533528
id: pr.repository?.project?.id,
534-
name: projectName,
529+
name: pr.repository.project.name,
535530
resourceId: '', // TODO: This is a workaround until we can get the org id here.
536531
resourceName: orgName,
537532
},

0 commit comments

Comments
 (0)