Skip to content

Commit 328e8e1

Browse files
committed
Suggests the repo of the issue as picked instead of skipping the step
(#3621)
1 parent 60d0628 commit 328e8e1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/commands/git/branch.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ interface CreateState {
6363
flags: CreateFlags[];
6464

6565
suggestNameOnly?: boolean;
66+
suggestRepoOnly?: boolean;
6667
}
6768

6869
type DeleteFlags = '--force' | '--remotes';
@@ -196,7 +197,7 @@ export class BranchGitCommand extends QuickCommand {
196197
}
197198
}
198199

199-
if (args?.state?.repo != null) {
200+
if (!(args?.state as CreateState)?.suggestRepoOnly && args?.state?.repo != null) {
200201
counter++;
201202
}
202203

src/plus/startWork/startWork.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ export class StartWorkCommand extends QuickCommand<State> {
172172
repo: repo,
173173
name: slug(`${issue.id}-${issue.title}`),
174174
suggestNameOnly: true,
175+
suggestRepoOnly: true,
175176
},
176177
},
177178
this.pickedVia,

0 commit comments

Comments
 (0)