Skip to content

Commit

Permalink
Resolve conflicts: No GitHub repository found for owner (#5961)
Browse files Browse the repository at this point in the history
Fixes #5945
  • Loading branch information
alexr00 authored Apr 24, 2024
1 parent e84e8be commit 45bbc4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/github/folderRepositoryManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2163,7 +2163,8 @@ export class FolderRepositoryManager implements vscode.Disposable {
}
let continueWithMerge = true;
if (pullRequest.item.mergeable === PullRequestMergeability.Conflict) {
const coordinator = new ConflictResolutionCoordinator(this.telemetry, conflictModel, this.gitHubRepositories.filter(repo => repo.remote.repositoryName === pullRequest.githubRepository.remote.repositoryName));
const githubRepos = await Promise.all([this.createGitHubRepositoryFromOwnerName(pullRequest.head!.owner, pullRequest.head!.repositoryCloneUrl.repositoryName), this.createGitHubRepositoryFromOwnerName(pullRequest.base.owner, pullRequest.base.repositoryCloneUrl.repositoryName)]);
const coordinator = new ConflictResolutionCoordinator(this.telemetry, conflictModel, githubRepos);
continueWithMerge = await coordinator.enterConflictResolutionAndWaitForExit();
coordinator.dispose();
}
Expand Down

0 comments on commit 45bbc4e

Please sign in to comment.