Files
fusion/.changeset/fn-pr-commands.md
gsxdsm 841ff9d838 Address PR review feedback (#1461)
- pr-nodes: forward post-increment entity to deps.respond (responseRounds off-by-one); branch-group entity fallback now keys on task.branchContext.groupId, not task.id
- core: hoist shared autoMergeGateReason into @fusion/core pr-entity.ts; CLI + dashboard import the single definition (R13)
- cli: fn pr create also writes the unified PR entity (ensure → open), keeping legacy prInfo; resolveBranchHeadOid uses argv-safe execFileAsync (injection fix)
- changeset: fn-pr-commands bumped minor → major (breaking CLI removal per AGENTS.md)
- tests: bin.test.ts daemon fixture off reserved port 4040; lazy-loaded-views title 19 → 20 views

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-06 00:09:53 -07:00

842 B

@runfusion/fusion
@runfusion/fusion
major

Add the unified fn pr command namespace for CLI parity with the dashboard's PR-entity review surface (U8, R13): fn pr create | list | show | approve | respond | retry | merge | close | automerge.

Each subcommand routes to the SAME store/engine/release path the dashboard PR routes use, so the two surfaces can't diverge: create mints the GitHub PR; list/show read PR entities; approve/respond/retry/merge/close fire the workflow's user-controlled release edges via releaseHeldTaskByEvent (pr-approve/pr-respond/pr-retry/pr-merge/pr-close); automerge toggles the entity's autoMerge flag.

BREAKING: the per-task fn task pr-create command is retired. Use fn pr create <task-id> instead (same flags: --title, --base, --body, --draft, --no-ai, --reviewer).