Skip to content

Commit 3e54cf5

Browse files
authored
Only compare owner on matching PR (#3580)
instead of comparing owner and name. Comparing the name is incorrect as forks can have different names from the original. Fixes #3511
1 parent 8d6bc7c commit 3e54cf5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/github/folderRepositoryManager.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1816,8 +1816,7 @@ export class FolderRepositoryManager implements vscode.Disposable {
18161816
const matchingPullRequest = await repo.getPullRequestForBranch(
18171817
this.repository.state.HEAD.upstream.name,
18181818
);
1819-
if (matchingPullRequest && (matchingPullRequest.head?.owner === headGitHubRepo?.remote.owner)
1820-
&& (matchingPullRequest.head?.name === headGitHubRepo?.remote.repositoryName)) {
1819+
if (matchingPullRequest && (matchingPullRequest.head?.owner === headGitHubRepo?.remote.owner)) {
18211820
return {
18221821
owner: repo.remote.owner,
18231822
repositoryName: repo.remote.repositoryName,

0 commit comments

Comments
 (0)