fix(review): include prior PR discussion in follow-up reviews #178
No reviewers
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Slipstream/auto_review!178
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-176-pr-discussion-history"
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?
Summary
Verification
nix develop -c cargo fmt --all -- --checknix develop -c cargo nextest run -p ar-reviewnix develop -c cargo nextest run -p ar-forgejonix develop -c cargo nextest run -p ar-promptsnix develop -c cargo clippy --workspace --all-targets -- -D warningsCloses #176
PR artifacts for
37d1f26d67:Docker image: git.johnwilger.com/jwilger/auto_review/ar-gateway-pr:pr-178-37d1f26d67edfdb09c76359579199b94c4b0b27c
binary download: https://git.johnwilger.com/api/packages/jwilger/generic/auto-review-pr/178-37d1f26d67edfdb09c76359579199b94c4b0b27c/auto-review-pr-178-37d1f26d67edfdb09c76359579199b94c4b0b27c-linux-x86_64.tar.gz
SHA256SUMS: https://git.johnwilger.com/api/packages/jwilger/generic/auto-review-pr/178-37d1f26d67edfdb09c76359579199b94c4b0b27c/SHA256SUMS
This PR enhances the review prompt by incorporating prior PR discussions and adding guidance to avoid duplicate feedback. It introduces new methods for retrieving review comments and integrates them into the review pipeline. The changes appear well-tested and safe to merge.
Walkthrough
crates/ar-cli/src/bench.rs and crates/ar-cli/src/commands.rs:
prior_discussionfield toReviewPromptInputsinitialization to include prior PR discussions in the review prompt.crates/ar-forgejo/src/client.rs:
list_pull_reviewsandlist_pull_review_commentsto retrieve review records and comments, respectively.crates/ar-forgejo/src/types.rs:
PullReviewSummarystruct to represent review summaries.crates/ar-prompts/src/prompt.rs:
ReviewPromptInputsto includeprior_discussion.render_review_promptto append prior PR discussions to the prompt.crates/ar-review/src/pipeline.rs:
render_prior_pr_discussionandload_prior_pr_discussionto process and load prior PR discussions.review_pull_requestfunction.Tests: