Repository navigation
Conversation
mergePreflight decides, from the reviewed revision and one set of fresh GitHub facts, whether Merge may be offered and with which methods. A changed account, repository, PR, head or target asks for renewed confirmation. Closed, draft, conflicting, blocked, behind, unknown, queue-required and unreadable states stay unavailable, with Open in GitHub as the fallback. An offer lists only explicitly allowed methods and carries the reviewed head as expectedHeadSha. Check counts and model findings are refused as inputs. mergeOperation builds a merge operation only from an offered method. Pure and unwired: no GitHub request, read, IPC channel or UI. Refs #326. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The second write increment. The header's Merge opens a panel; main reads push permission, the repository's allowed methods, GitHub's merge state and the target branch's rules fresh for every check, preview and submit, and #412's mergePreflight decides what may be offered. - One PUT, repos/{o}/{r}/pulls/{n}/merge, with sha = the reviewed head from the durable intent and an offered merge_method. A moved head, a moved target or a withdrawn method between preview and merge sends nothing. - Unknown, blocked or queue-required state and unreadable settings or rules stay unavailable with Open on GitHub; check counts and model findings are not inputs. - An unclear merge is unknown, blocks the PR, and is confirmed only if the PR merged by this account at that head. - Unit, IPC and Electron coverage against a synthetic gh. No live merge. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Code coverage overviewLanguages: TypeScript TypeScript / code-coverage-agent
View coverage of the 10 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. |
|
Superseded by #416, now verified merged as This PR's published head is an ancestor of the reviewed integration head. The integration includes the reviewed write-race and uncertainty repairs. This closure records supersession, not live-write or human acceptance of #326. Your source worktree remains protected; no owner release or deletion is performed here. |
Part of #326, the second of three increments. Stacked on #413 (
cr7-write-submit). It carries #412's preflight commit (e988cdc, the same change as #412's82b4bf1, plus a docs conflict resolution), so #412 can merge first or be closed in favour of this one.What this adds
Merge in the header. It's disabled until the PR has loaded and main has answered for this account. It opens a panel with:
owner/repo #nand head, and a confirm button.Fresh facts in main for every check, preview and submit:
allow_merge_commit,allow_squash_mergeandallow_rebase_merge;mergeableandmergeable_state;Add CR-7's unwired merge preflight #412's
mergePreflightdecides.What is never offered: unknown, blocked, behind, conflicting, draft or queue-required states, and unreadable settings or rules. Check counts and model findings aren't inputs.
One fixed
PUT repos/{o}/{r}/pulls/{n}/merge, withsha= the reviewed head from the durable intent and an offeredmerge_method. These all send nothing and spend the preview:Unclear outcomes stay unknown and block the PR. A read-back confirms the merge only if the PR merged, by this account, at that head. Merged by someone else proves nothing.
Validation
pnpm build && pnpm test && pnpm test:e2e: exit 0.PUT, to the merge endpoint, carrying the intent's head;ghonly. No live merge was run, and no real PR was merged.Evidence:
docs/reviews/2026-10-25-cr7-merge.md. Design:docs/design/code-review.md(CR-7 merge).Please don't merge without Val's go-ahead.
🤖 Generated with Claude Code