Review PR
Perform a thorough code review of a GitHub Pull Request.
Arguments
PR number or PR URL (e.g., 123 or https://github.com/owner/repo/pull/123)
$ARGUMENTS
Steps
Extract PR number from argument
Fetch PR information:
gh pr view <number>Get the diff:
gh pr diff <number>Fetch existing review comments:
gh api repos/{owner}/{repo}/pulls/{number}/comments gh api repos/{owner}/{repo}/pulls/{number}/reviewsUse code-reviewer agent to perform the review with:
- PR title and description
- All changed files (diff)
- Existing review comments for context
Output
The code-reviewer agent provides structured feedback organized by priority:
- Critical: Security issues, bugs
- Warning: Code quality concerns
- Suggestion: Improvements
With specific file locations and fix recommendations.