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
This commit is contained in:
1 parent
30e05538b7
commit
94beb21a43
2 files changed
+12
No files matched your search
@@ -804,6 +804,17 @@ describe("buildGitActionProgressStages", () => {
|
||||
assert.deepEqual(stages, ["Pushing to origin/feature/test..."]);
|
||||
});
|
||||
|
||||
it("skips commit stages for create-pr flow when push-only is forced", () => {
|
||||
const stages = buildGitActionProgressStages({
|
||||
action: "commit_push_pr",
|
||||
hasCustomCommitMessage: false,
|
||||
hasWorkingTreeChanges: true,
|
||||
forcePushOnly: true,
|
||||
pushTarget: "origin/feature/test",
|
||||
});
|
||||
assert.deepEqual(stages, ["Pushing to origin/feature/test...", "Creating PR..."]);
|
||||
});
|
||||
|
||||
it("includes commit stages for commit+push when working tree is dirty", () => {
|
||||
const stages = buildGitActionProgressStages({
|
||||
action: "commit_push",
|
||||
|
||||
@@ -372,6 +372,7 @@ export default function GitActionsControl({ gitCwd, activeThreadId }: GitActions
|
||||
closeResultToast();
|
||||
void runGitActionWithToast({
|
||||
action: "commit_push_pr",
|
||||
forcePushOnlyProgress: true,
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user