File tree 1 file changed +13
-5
lines changed
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -636,18 +636,26 @@ export class IssueFeatureRegistrar implements vscode.Disposable {
636
636
}
637
637
638
638
async doStartWorking (
639
- repoManager : FolderRepositoryManager | undefined ,
639
+ matchingRepoManager : FolderRepositoryManager | undefined ,
640
640
issueModel : IssueModel ,
641
641
needsBranchPrompt ?: boolean ,
642
642
) {
643
+ let repoManager = matchingRepoManager ;
644
+ let githubRepository = issueModel . githubRepository ;
645
+ let remote = issueModel . remote ;
643
646
if ( ! repoManager ) {
644
- vscode . window . showErrorMessage ( `There are no repositories open that match ${ issueModel . remote . url } ` ) ;
645
- return ;
647
+ repoManager = await this . chooseRepo ( 'Choose which repository you want to work on this isssue in.' ) ;
648
+ if ( ! repoManager ) {
649
+ return ;
650
+ }
651
+ githubRepository = await repoManager . getOrigin ( ) ;
652
+ remote = githubRepository . remote ;
646
653
}
647
654
648
- const remoteNameResult = await repoManager . findUpstreamForItem ( issueModel ) ;
655
+
656
+ const remoteNameResult = await repoManager . findUpstreamForItem ( { githubRepository, remote} ) ;
649
657
if ( remoteNameResult . needsFork ) {
650
- if ( ( await repoManager . tryOfferToFork ( issueModel . githubRepository ) ) === undefined ) {
658
+ if ( ( await repoManager . tryOfferToFork ( githubRepository ) ) === undefined ) {
651
659
return ;
652
660
}
653
661
}
You can’t perform that action at this time.
0 commit comments