authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-03-02 20:08:27-08:00
committergravatar for jmarminge@gmail.comJulius Marminge <jmarminge@gmail.com> 2026-03-02 20:46:05-08:00
logdcd2d50768363e61fdf556e81abada8aa54996de
treea64b3bc6819a23e15896d04b7cfb8d0a5b4e46e4
parentf11764c517732b1c02057f28ff1a10f03f8157da

Keep non-default quick action on full PR flow

Co-authored-by: codex <codex@users.noreply.github.com>

2 files changed, 4 insertions(+), 4 deletions(-)

apps/web/src/components/GitActionsControl.logic.test.ts+3-3
......@@ -365,7 +365,7 @@ describe("when: working tree has local changes", () => {
365365 });
366366 });
367367
368 it("resolveQuickAction returns commit and push when open PR exists", () => {
368 it("resolveQuickAction keeps full commit/push/pr flow on non-default branches even when PR exists", () => {
369369 const quick = resolveQuickAction(
370370 status({
371371 hasWorkingTreeChanges: true,
......@@ -382,8 +382,8 @@ describe("when: working tree has local changes", () => {
382382 );
383383 assert.deepInclude(quick, {
384384 kind: "run_action",
385 action: "commit_push",
386 label: "Commit & push",
385 action: "commit_push_pr",
386 label: "Commit, push & create PR",
387387 });
388388 });
389389
apps/web/src/components/GitActionsControl.logic.ts+1-1
......@@ -204,7 +204,7 @@ export function resolveQuickAction(
204204 }
205205
206206 if (hasChanges) {
207 if (hasOpenPr || isDefaultBranch) {
207 if (isDefaultBranch) {
208208 return { label: "Commit & push", disabled: false, kind: "run_action", action: "commit_push" };
209209 }
210210 return {