Review Pull Request
Purpose
Perform a structured first-pass code review on an open pull request, posting feedback comments to assist human reviewers and catch common issues early.
Instructions
- •Confirm the PR number is not already in the processed-message log
- •Post an acknowledgement comment: "Agent review started — feedback incoming shortly"
- •Call
review_pull_requestwith the repository and PR number - •The tool will post structured review comments covering:
- •Code correctness and logic errors
- •Potential bugs or edge cases not handled
- •Security considerations (e.g., input validation, injection risks)
- •Code quality and readability suggestions
- •Test coverage gaps (if tests are expected)
- •Post an overall assessment:
- •If no significant issues found: approve or post clean-bill comment
- •If issues found: request changes with a summary of findings
Review Coverage
- •Must check: Logic errors, null safety, error handling, security concerns
- •Should check: Code style (per project conventions), test coverage, performance
- •Skip: Subjective style preferences not covered by the project's coding standards
Expected Output
The overall review verdict: "approved", "changes-requested", or "commented", with a count of issues found at each severity level.