Skip to content

feat(review): local reviews read a draft PR description; release 1.9.0 - #23

Merged
jack1590 merged 2 commits into
mainfrom
feat/review-draft-description
Nov 19, 2026
Merged

jack1590 merged 2 commits into
mainfrom
feat/review-draft-description

Conversation

@jack1590

Copy link
Copy Markdown
Owner

Why

A local review (review_start with path) that runs before the PR exists has no PR description: the judge is told PR description: (no description), and the PR's test list is []. On foxcorp/fox-player-roku#1199 the pre-PR local review of 9a3fff38 reported only the ticket-scope finding. The PR review of the same commit, which had the description, also found a log-ordering bug in the new runner script and stale comments in rce-lease.js, and raised a needs-device item. Each of those traced back to a claim in the PR description.

What changed

  • review_start path mode takes title and description, or descriptionFile (an absolute path to a markdown file). The draft is used as the PR description and searched for the JIRA key. An open PR's own description still wins. A relative path, an unreadable file, or both description and descriptionFile are rejected before the review starts.
  • review_get reports descriptionSource (pr, draft or none), also stored in the result's context.
  • Local reviews pass the branch's test files (TEST_FILE) to the judge instead of an empty list.
  • The last 5 local results of each branch are kept under local/<project>/history/<repo>__<branch>/. The latest-result file is written exactly as before. A failed history write logs a warning and does not fail the review.
  • Version 1.9.0, with the CHANGELOG entry and the docs pages updated.

How to test

  • npm run typecheck, npm test, npm run ci:app-check.
  • verify-review-mcp has new cases for readDraft, reviewDescription and olderLocalResults.
  • With 1.9.0 installed: run review_start({ path, base, descriptionFile }) on a branch with no PR, then check that review_get shows descriptionSource: "draft" and that a JIRA key in the draft is picked up.

Not verified

  • executeLocal and the bridge wiring are covered only by typecheck; no harness runs them.
  • Not run end to end: the installed app is 1.8.0, whose MCP schema rejects the new parameters.
  • TEST_FILE matches BrightScript specs only, so on a TypeScript repo the test list stays empty.

A local review run before the PR exists told the judge the PR had no
description and no test files, so it missed findings the PR review caught.
review_start with path now takes title and description, or descriptionFile
(an absolute path to a markdown file). The draft is the PR description for
the judge and the JIRA lookup; an open PR's own description still wins.
review_get reports descriptionSource (pr, draft or none). The branch's test
files are passed to the judge, and the last 5 local results per branch are
kept under history/ beside the latest.
A PR whose body is an empty string won over the caller's draft, and an
empty descriptionFile was reported as descriptionSource draft.
@jack1590
jack1590 merged commit a9adc1b into main Nov 19, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant