M36: Forgejo pull request blocks (attention, diff, checkout, drafts as asks) #88
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Blocked by: #87 (S23), #73 (M34's gate
source) and #85 (M35'sApi::Askon non-terminal blocks). Plan: PLAN's "Forge track", M36.BlockType::Forgewith{provider: forgejo, host, repo, kind: pr, number}:blocks/%N/, sohistoryandsearchfind it.source(forge) and M24's reasons:ask;failed, with Rerun checks;input;done.comment,approve,request_changes,merge,rerun_checks,refresh. An agent's write becomes a draft ask; a person's goes out as them. Owner and editors only.diff: an M11 diff block onmerge-base..headin a worktree of the head.checkout: a terminal block in that worktree.capture --text: the PR as text.illogical pr [URL | REPO#N | N], Open pull request…, PR links in terminals, MCPopen_pr, and the swarm (kindpr).blocks/forge.tsx, plus the phone sheet (what waits on you first) and a TUI line.Tests: adapter units on S23's fixtures; daemon tests for attention, drafts and viewer refusal against a fake Forgejo (with ETags); e2e.
Done when: on geek, a real PR on this repo's Forgejo opens as a block. A review requested from Jake reaches the rail and phone within about a minute, and approving it from the phone shows on Forgejo as Jake. Red checks show as Failed with Rerun checks. An agent's
commentwaits as a draft until Jake sends it.Built and merged into main (forge track, released in v0.8.0). PLAN has an "as built" section for this milestone, with what landed, tests and what is not covered. The part of "done when" that writes to a real forge is in #93 for Jake.