From 8ca14511ec19643f0544c488b19c6425ecd7e305 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 1 Mar 2026 23:03:00 +0000 Subject: [PATCH] refactor(progressSteps): improve progress steps implementation --- src/github/runAction.ts | 51 +++++++++++++++++++++++++++++++++-------- 1 file changed, 42 insertions(+), 9 deletions(-) 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