feat: give context on previous reviews for successive review requests #263
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/successive-review-context"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #165
When the agent is assigned as a reviewer again on a pull request it has already reviewed, it now gets the full history of its previous reviews in the prompt:
state), reviewed commit, and summary body.The prompt also instructs the agent to check the current code against each previously raised issue: acknowledge the ones that are fixed, re-raise the ones still open, and look for new issues introduced since the last review.
Changes
src/schemas.ts— extendedprReviewSchemaandprReviewCommentSchemawith author, verdict, commit, timestamps, path and line; addedprReviewWithCommentsSchema.src/forgejo/index.ts— addedgetPrReviewsWithComments()which fetches all PR reviews together with their inline comments.src/context.ts— fetches previous reviews (with comments) onpull_request_review_requestedevents and exposes them in the event context.src/prompt.ts— renders the previous reviews section and adds successive-review guidance when previous reviews exist.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.