authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-03-02 19:34:40-08:00
committergravatar for jmarminge@gmail.comJulius Marminge <jmarminge@gmail.com> 2026-03-02 20:46:05-08:00
log94beb21a4358cda0590c448ba684f663ad476ec1
tree2fd2847dfa1ee2dd541ff783e18d254d52f70331
parent30e05538b797ea4d1df34d21332ea471142874b7

Skip commit progress stages when create-PR runs push-only

- pass `forcePushOnlyProgress` for the create-PR action - add logic test to ensure only push and PR stages are shown

2 files changed, 12 insertions(+), 0 deletions(-)

apps/web/src/components/GitActionsControl.logic.test.ts+11
...@@ -804,6 +804,17 @@ describe("buildGitActionProgressStages", () => {...@@ -804,6 +804,17 @@ describe("buildGitActionProgressStages", () => {
804 assert.deepEqual(stages, ["Pushing to origin/feature/test..."]);804 assert.deepEqual(stages, ["Pushing to origin/feature/test..."]);
805 });805 });
806806
807 it("skips commit stages for create-pr flow when push-only is forced", () => {
808 const stages = buildGitActionProgressStages({
809 action: "commit_push_pr",
810 hasCustomCommitMessage: false,
811 hasWorkingTreeChanges: true,
812 forcePushOnly: true,
813 pushTarget: "origin/feature/test",
814 });
815 assert.deepEqual(stages, ["Pushing to origin/feature/test...", "Creating PR..."]);
816 });
817
807 it("includes commit stages for commit+push when working tree is dirty", () => {818 it("includes commit stages for commit+push when working tree is dirty", () => {
808 const stages = buildGitActionProgressStages({819 const stages = buildGitActionProgressStages({
809 action: "commit_push",820 action: "commit_push",
apps/web/src/components/GitActionsControl.tsx+1
...@@ -372,6 +372,7 @@ export default function GitActionsControl({ gitCwd, activeThreadId }: GitActions...@@ -372,6 +372,7 @@ export default function GitActionsControl({ gitCwd, activeThreadId }: GitActions
372 closeResultToast();372 closeResultToast();
373 void runGitActionWithToast({373 void runGitActionWithToast({
374 action: "commit_push_pr",374 action: "commit_push_pr",
375 forcePushOnlyProgress: true,
375 });376 });
376 },377 },
377 },378 },