Repository navigation
feat(review): review GitHub pull requests, plannotator-tui review <PR> - #164
Merged
Merged
Conversation
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 20, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it does
plannotator-tui reviewcan now review a GitHub pull request. The screen shows the diff GitHub shows: the PR's head commit against the merge base with its base branch. Notes, Send, reload and the archive work the same as in any other code review. Nothing is posted to GitHub.The header names the PR, for example:
The text sent to the agent uses the browser's PR review header:
# PR Review: owner/repo#123, then the title, the branches and the link. Notes are saved once per PR, so you see the same notes from any clone. The archive records the PR ingitRefandpr, as the browser does.Send works as #159 made it: with no agent target and no delivery command, Send asks which agent to send to.
Accepted forms
plannotator-tui review 123: PR 123 of the GitHub repository of the current folderplannotator-tui review '#123': same as aboveplannotator-tui review https://github.com/owner/repo/pull/123: works from any folder. Anything after the number (/files,?w=1,#diff…) is ignored.plannotator-tui review --pr X: X is any of the forms aboveplannotator-tui herdr review <PR>,rex review <PR>,hc review <PR>To review a folder whose name is only digits, write
./123.Where it fetches
It reads the PR with
gh pr view(the person's ownghlogin; this is the onlyghcall, and it only reads).refs/plannotator-tui/pull/<n>/head. Your branch, index and working files are not changed.clients/plannotator-tui/pulls/<host>/<owner>/<repo>.git. The first review of a repository downloads its history once.rreads the PR again and fetches new pushes. Notes follow their lines, the same as for local changes.How it was tested
cargo fmt --check,cargo clippy --locked --workspace --all-targets -- -D warningsandcargo test --locked --workspacepass on macOS.cargo clippy --target x86_64-pc-windows-msvc --workspace --all-targets -- -D warningspasses, run as a check-only cross build. The new tests that use a shell-scriptghor fakeherdrare Unix-only, like the existing Herdr tests.refs/pull/7/head, a shell script in place ofgh, andurl.<path>.insteadOf. No network. They cover link and number parsing, remote matching, capture into a clone and into the cache, reload after a new push, the feedback text and archive fields, the binary throughreview <PR>andherdr review --pr, and a new screen test: a PR review with no target opens the agent picker on Send and sends the PR feedback to the agent you pick.HOMEand data dir, in a private tmux server:review 158in a clone: the header is as shown above, and Send with a delivery command delivered the# PR Review: plannotator/plannotator-tui#158text.review '#158'in the clone with no delivery command and no agent target, and a fakeherdrthat lists one agent: the header readsSend 1 new ▸ choose agent (E). Send opened "send to which agent?" withCopy to clipboardand the agent, with the cursor on the agent. Esc said "nothing sent". A second Send, then Enter, sent the PR feedback to the fake agent's pane.review https://github.com/plannotator/plannotator-tui/pull/158from a folder that is not a clone: fetched into the cache repository and showed the same header.