Repository navigation
feat(pr-review): conductor can trigger a full review via API/CLI/skill (+ cheat sheet) - #412
Merged
Merged
Conversation
Lets the host (global) Claude run a full PR review itself, not just the browser button: - API: POST /api/prs/<id>/review starts the review WORKFLOW as a background job (auto-runs enrich + risk if missing, then the pr.review prompt); poll GET /api/prs/<id>/analysis (new "review" field), read GET /api/prs/<id>/review. POST /api/prs/<id>/comment publishes the markdown as a PR comment. All in the OpenAPI spec so the conductor discovers them (drift test passes). - CLI: `corral pr review <prId> [--wait]` — start, or wait-and-print. - Skill: a "Full review of a PR" section that distinguishes a full review (host, read-only — reads the PR, writes a review, does NOT run code) from a sandbox verify (runs the branch in a container), and states they're independent and can run AT THE SAME TIME. Maps the phrasings: "do a full review" → review only; "do a full review AND verify in a sandbox" → both, concurrently. - docs/CHEAT_SHEET.md: human-readable, table-driven examples of what to say to the dashboard's Claude (fake repos project-planner/invoice-service), matched to real API/CLI/skill actions; linked from docs/README. Test: TestAPIPRReviewRoutes (stored review null before a run, analysis exposes the review job, start route wired). Dashboard + prreview + automations pass. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Follow-up to #411 — lets the host (global) Claude run a full PR review itself, not just the browser button, and documents how to ask for it.
API (conductor-facing, background jobs)
POST /api/prs/<id>/review— starts the full-review workflow in the background (auto-runs enrich + risk if missing, then thepr.reviewprompt).GET /api/prs/<id>/analysis— now exposes areviewjob field alongsideenrich/riskto poll.GET /api/prs/<id>/review— read the stored markdown once done.POST /api/prs/<id>/comment— publish the review as a PR comment (writes to GitHub, gated by API-writes).TestOpenAPINoDriftpasses).CLI
corral pr review <prId> [--wait]— start, or wait-and-print the markdown.Skill
New "Full review of a PR" section in
corral-api/SKILL.mdthat draws the distinction the user asked for:Cheat sheet
docs/CHEAT_SHEET.md— human-readable, table-driven examples of what to say to the dashboard's Claude (fake reposproject-planner/invoice-service), matched to real API/CLI/skill actions. Covers full review, full-review-plus-sandbox-verify, multi-repo projects, getting an app into Live View, GitHub housekeeping, and fan-out. Linked fromdocs/README.Tests
TestAPIPRReviewRoutes(stored review null before a run; analysis exposes the review job; start route wired).internal/dashboard+internal/prreview+internal/automationspass.🤖 Generated with Claude Code