Skip to content

Commit

Permalink
Creates branch suggesting a name based on selected issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeibbb committed Oct 24, 2024
1 parent cd6ad00 commit 11e6edf
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/plus/startWork/startWork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
StepResultBreak,
} from '../../commands/quickCommand';
import { ensureAccessStep } from '../../commands/quickCommand.steps';
import { getSteps } from '../../commands/quickWizard.utils';
import { proBadge } from '../../constants';
import { HostingIntegrationId } from '../../constants.integrations';
import type { Container } from '../../container';
Expand Down Expand Up @@ -108,7 +109,21 @@ export class StartWorkCommand extends QuickCommand<State> {
if (typeof state.action === 'string') {
switch (state.action) {
case 'start':
startWork(state.item.item);
//yield* this.startWorkCommandSteps(state.item.item);
yield* getSteps(
this.container,
{
command: 'branch',
state: {
subcommand: 'create',
repo: undefined,
name: `${state.item.item.issue.id}-${state.item.item.issue.title}`,
suggestNameOnly: true,
//flags: ['--switch'],
},
},
this.pickedVia,
);
break;
}
}
Expand Down

0 comments on commit 11e6edf

Please sign in to comment.