Skip to content

Commit 9946bd5

Browse files
committed
Creates branch suggesting a name based on selected issue
(#3621)
1 parent 55186a1 commit 9946bd5

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/plus/startWork/startWork.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
StepResultBreak,
1616
} from '../../commands/quickCommand';
1717
import { ensureAccessStep } from '../../commands/quickCommand.steps';
18+
import { getSteps } from '../../commands/quickWizard.utils';
1819
import { proBadge } from '../../constants';
1920
import { HostingIntegrationId } from '../../constants.integrations';
2021
import type { Container } from '../../container';
@@ -108,7 +109,21 @@ export class StartWorkCommand extends QuickCommand<State> {
108109
if (typeof state.action === 'string') {
109110
switch (state.action) {
110111
case 'start':
111-
startWork(state.item.item);
112+
//yield* this.startWorkCommandSteps(state.item.item);
113+
yield* getSteps(
114+
this.container,
115+
{
116+
command: 'branch',
117+
state: {
118+
subcommand: 'create',
119+
repo: undefined,
120+
name: `${state.item.item.issue.id}-${state.item.item.issue.title}`,
121+
suggestNameOnly: true,
122+
//flags: ['--switch'],
123+
},
124+
},
125+
this.pickedVia,
126+
);
112127
break;
113128
}
114129
}

0 commit comments

Comments
 (0)