)
Decisions 2-4, put in scope by Val on 2026-10-25, as the third write
increment on code-review:write.
- The state pill is a menu: close, reopen, convert to draft, ready for
review, only from the states GitHub allows. Close and reopen PATCH the PR;
draft and ready are GitHub's two fixed GraphQL mutations, the only GraphQL
sent, matched text for text with the node id as the one variable.
- Edit pull request: the title and description in one form. Only changed
fields are sent, and main refuses the edit if GitHub's text changed since
it was read; the PR is then read again.
- Request reviewers by login; never the author or oneself.
- Permission (push, triage or authorship as GitHub grants it), head, target
and login are read again at preview and at submit. An unclear change
stays unknown until the PR shows it.
- Unit, IPC guard and Electron coverage against a synthetic gh. No live run.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Part of #326, the third of three increments: decisions 2–4, which Val put in scope on 2026-10-25. Stacked on #414 (
cr7-merge).What this adds
PATCH pulls/{n}with{ state }.capabilities()letsedit,request-reviewersandstatefollow the connection; only [CR-6][P1] Add native AI review, PR questions and scoped review instructions #325's controls stay unavailable.Validation
pnpm build && pnpm test && pnpm test:e2e: exit 0..cr-menuCSS class collision with the inbox header, caught by the 900×600 layout check.ghonly. No live action was run on any real PR.Limits: GitHub has no precondition on a PATCH, so an edit made in the moment between main's check and its PATCH would still be overwritten. Reviewer requests can't be withdrawn, and team reviewers aren't offered.
Evidence:
docs/reviews/2026-10-25-cr7-pr-actions.md. Design:docs/design/code-review.md(CR-7 state, edits and reviewers).Please don't merge without Val's go-ahead.
🤖 Generated with Claude Code