Skip to content
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
55a5f2e
delta: what changed since the last round, from the clone's refs (for …
catalan-adobe Dec 1, 2026
9027d5a
dash: hand the terminal to a program and take it back
catalan-adobe Dec 1, 2026
47f1aa8
dash: the actions' commands, the agent's brief and the ignore list edits
catalan-adobe Dec 1, 2026
7c1a062
dash: a, w, d, e, o, y, x and :unmute
catalan-adobe Dec 1, 2026
f150fa2
dash README: the actions on a PR, the handover, dash.agent.command
catalan-adobe Dec 1, 2026
690a626
dash tests: clear the test screen without an unreachable error path (…
catalan-adobe Dec 1, 2026
118f95e
delta: no diff driver of the clone's (a cached text conversion wrote …
catalan-adobe Dec 1, 2026
34485e8
session: a, w and e run under the PR's locks (gh pr-review session), …
catalan-adobe Dec 1, 2026
d326381
dash e: the editor gets the finding's file only when it is a regular …
catalan-adobe Dec 1, 2026
a5349b3
dash handover: the program's own foreground process group, the termin…
catalan-adobe Dec 1, 2026
cdbef8e
dash a: placeholders as environment variables, refused in single quot…
catalan-adobe Dec 1, 2026
64f5b69
dash d: the delta as bytes, through a private file to the pager; stri…
catalan-adobe Dec 1, 2026
f50b7e2
dash ignore list: edits under an flock beside the file, null refused,…
catalan-adobe Dec 1, 2026
26b0dd7
dash x and :unmute: the ignore list read and edited in a worker; a re…
catalan-adobe Dec 1, 2026
40f334d
dash: the finding cursor stays on a row of a shorter detail; drawing …
catalan-adobe Dec 1, 2026
49a3a52
delta: drop config a parent git passed on (GIT_CONFIG_PARAMETERS outr…
catalan-adobe Dec 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 35 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,17 @@ Inside a repo clone, a bare number works: `gh pr-review 42`.
```
gh pr-review rounds <PR-URL | PR-number> [--json] [-u <login>]
gh pr-review show <PR-URL | PR-number> --json [-u <login>]
gh pr-review delta <PR-URL> [--color]
gh pr-review session <PR-URL> [--error-file <file>] -- <program> [<arg>...]
gh pr-review status [--json | --md] [--all] [--stale-days <n>] [--mine | --reviewing] [-u <login>]
gh pr-review gc [--dry-run] [-u <login>]
gh pr-review dash [--ascii] [--theme auto|dark|light]
```

`rounds` shows a PR's round history (see [Round history](#round-history)). `show` prints one PR in full as JSON, for
the terminal dashboard and scripts (see [One PR as JSON](#one-pr-as-json)). `status` lists your open PRs and whose
the terminal dashboard and scripts (see [One PR as JSON](#one-pr-as-json)). `delta` prints what changed since the
last round (see [The delta since the last round](#the-delta-since-the-last-round)). `session` runs a program in the
review worktree under the PR's locks (see [A session in the review worktree](#a-session-in-the-review-worktree)). `status` lists your open PRs and whose
turn each one is (see [Status](#status)). `gc` removes the review worktrees and private refs of merged and closed PRs
(see [Cleaning up](#cleaning-up)). `dash` starts the terminal dashboard, `gh-pr-review-dash`, a separate Rust program
in [dash/](dash/README.md) (`cargo install --locked --path dash` from a clone); without it on `PATH`, it says how to
Expand Down Expand Up @@ -469,6 +473,36 @@ threads, one compare per later round whose head moved), 4 without rounds. A
bare PR number adds one, `gh repo view` for the clone's repository: up to
K + 7, or 5 without rounds. Paginated lists take one call per page.

### The delta since the last round

`gh pr-review delta <PR-URL>` prints what changed on the PR since its last round, as git shows it: the dashboard's `d`
pages it. It reads only, on this machine: the PR's clone (`pr.json` names it) and the [private refs](#the-review-worktree-and-the-private-refs)
the runs keep there. The last round is the highest `K` with a `round-<K>` ref, the last round posted from this machine;
the head is the PR's `head` ref, as the last round or preview fetched it. Nothing is fetched, so commits pushed since
are not in it: a new round or preview fetches them. It shows the delta as round 2 and later review it (see
[Round 2 and later](#round-2-and-later)): a `git diff --stat` and a `git diff` from the round's head (from that head
merged onto the new base when the author merged the base in), or a `git range-diff` after a rebase. When it can't
narrow the delta to the PR's own changes (the PR's base changed, or the round's base is unknown), it prints a plain
diff of the two heads, and says so. Git writes nothing into the clone: the tree a merged-in base needs goes to a
temporary object folder, and the clone's diff drivers are not used (no text conversion, no external diff: a cached text
conversion would write a `refs/notes/textconv/*` ref into the clone), so the text is git's own. `--color` colors git's output. No clone, no round ref or no head ref: an error (exit 1)
that says which.

### A session in the review worktree

`gh pr-review session <PR-URL> -- <program> [<arg>...]` runs a program in the PR's review worktree (the one its
`pr.json` names): the dashboard's `a` (the agent), `w` (a shell) and `e` (the editor) run through it. It takes the
PR's lock and the clone's lock for the PR, as a review run does, checks the worktree under them (a worktree of the
clone, in `<clone>.reviews`), and holds them until the program ends: a round, a preview or `gc` of the PR started
meanwhile is refused ("another review of this PR is running"), and a session is refused while one runs. The program
runs as a child: the locks are released when it ends, however it ends. The terminal's ctrl+c and ctrl+\ end the
program, not the session, which cleans up after it. It exits with the program's status (128+N for a signal), and with
125 without running it when it can't start (no worktree, a lock held): the reason on stderr, or in the file
`--error-file` names (the dashboard shows it).

The worktree is the tool's: the next round or preview resets it (a forced checkout of the PR's head, then a clean), so
an edit made in a session does not stay there. Commit and push from your own clone.

## Status

```
Expand Down
135 changes: 120 additions & 15 deletions dash/README.md

Large diffs are not rendered by default.

813 changes: 813 additions & 0 deletions dash/src/actions.rs

Large diffs are not rendered by default.

Loading