Repository navigation
feat(review): code review from Rex and herdr-core - #158
Merged
Merged
Conversation
`plannotator-tui rex review [--staged | --base REF | --commit SHA]` opens a code review of the block's git repository in a split beside it, with Send going to the agent in that block. `hc review` does the same for an hc terminal. Both check the repository has changes before any pane opens, as `herdr review` does, and are unix only like the review itself. Rex Annotate gains the `annotate_review` action (palette: Annotate), with no default key. The scope flags, the changes check and the pane side move from review/herdr.rs to review/scope.rs, shared by the three launchers.
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.
Code review (0.10.0) only had a Herdr launcher. This adds the other two:
plannotator-tui rex review [--staged | --base REF | --commit SHA] [--block <id>] [--session <id>] [--paste] [--placement P]opens the review of the block's repository beside it, and Send goes to that block's agent.rex installadds anannotate_reviewaction ("Annotate: Review Changes") with no default key.plannotator-tui hc review [scope flags] [--terminal <t>] [--placement P]does the same in its own hc terminal.herdr reviewdoes. Windows says code review isn't available yet.review/herdr.rstoreview/scope.rs, shared by all three launchers.ewith Shift (kittyCSI 101;2u) asE. hc's key injection sends shifted letters that way, soE(Send) didn't register.Tested end to end on a throwaway Rex server (build 1924): the action opened a split beside a stand-in agent, and Send delivered the feedback to it. Clean repo and non-repo folders were refused without opening a pane. hc was tested on an isolated herdr-core with a stand-in herdr-app, so herdr-app showing the review is untested. New integration tests in
tests/rex_hc_review.rsrun the binary against fakerex,hcandherdr-app.