diff --git a/src/github/runAction.ts b/src/github/runAction.ts index c6415bf..a347de6 100644 --- a/src/github/runAction.ts +++ b/src/github/runAction.ts @@ -133,6 +133,24 @@ interface ActionRunContext { changedFiles?: ChangedFiles; } +function getProgressSteps(createIssues: boolean): string[] { + if (createIssues) { + return [ + '๐Ÿ” Gather context', + '๐Ÿง  Generate feature plan', + '๐Ÿ“Œ Create issues', + '๐Ÿ Wrap up', + ]; + } + + return [ + '๐Ÿ” Gather context', + 'โœจ Apply edits', + '๐Ÿงช Review changes', + '๐Ÿ Wrap up', + ]; +} + function createRunContext( config: ActionConfig, processedEvent: ProcessedEvent, @@ -140,7 +158,7 @@ function createRunContext( return { config, processedEvent, - progressSteps: ['๐Ÿ” Gather context', '๐Ÿ“ Plan', 'โœจ Apply edits', '๐Ÿ Wrap up'], + progressSteps: getProgressSteps(processedEvent.createIssues), downloadedImageFiles: [], }; } @@ -241,6 +259,22 @@ async function executeAction(runCtx: ActionRunContext): Promise