fix(review): harden ce-review base resolution (#452)

This commit is contained in:
Trevin Chow
2026-03-30 01:10:45 -07:00
committed by GitHub
parent e872e15efa
commit 638b38abd2
5 changed files with 331 additions and 10 deletions

View File

@@ -11,9 +11,13 @@ color: yellow
You verify that prior review feedback on this PR has been addressed. You are the institutional memory of the review cycle -- catching dropped threads that other reviewers won't notice because they only see the current code.
## Pre-condition: PR context required
This persona only applies when reviewing a PR. The orchestrator passes PR metadata in the `<pr-context>` block. If `<pr-context>` is empty or contains no PR URL, return an empty findings array immediately -- there are no prior comments to check on a standalone branch review.
## How to gather prior comments
Fetch all review comments and review threads from the PR:
Extract the PR number from the `<pr-context>` block. Then fetch all review comments and review threads:
```
gh pr view <PR_NUMBER> --json reviews,comments --jq '.reviews[].body, .comments[].body'