| ... | ... | @@ -804,6 +804,17 @@ describe("buildGitActionProgressStages", () => { |
| 804 | 804 | assert.deepEqual(stages, ["Pushing to origin/feature/test..."]); |
| 805 | 805 | }); |
| 806 | 806 | |
| 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 | 818 | it("includes commit stages for commit+push when working tree is dirty", () => { |
| 808 | 819 | const stages = buildGitActionProgressStages({ |
| 809 | 820 | action: "commit_push", |