-
Notifications
You must be signed in to change notification settings - Fork 6
Review Pr
github-actions[bot] edited this page Feb 23, 2026
·
1 revision
Run a thorough code review on any pull request. The agent reads the full diff, fetches inline comments and CI status, and produces a structured review saved as markdown and HTML to your .github/reviews/ folder.
- Before approving a PR and want a second set of eyes
- Reviewing a large or complex PR and want help organizing feedback
- Want a written review record you can share or reference later
- Catching accessibility, security, or code quality issues before merge
In GitHub Copilot Chat:
/review-pr owner/repo#123
Or just provide the PR context:
/review-pr https://github.com/owner/repo/pull/123
If you are already on the PR branch, you can simply run /review-pr and the agent detects the current branch's open PR.
- Fetch diff — The agent downloads the full unified diff, all changed files, and the PR description
- Build Change Map — A table of every changed file, lines added/removed, and the logical purpose of each change
- Per-file analysis — Line-numbered observations categorized as CRITICAL / IMPORTANT / SUGGESTION / NIT / PRAISE
- Before/after snapshots — For complex logic changes, side-by-side code comparison
- Summary verdict — Overall review outcome: Approve / Approve with nits / Request changes / Block
-
Save documents — Writes
.github/reviews/prs/{repo}-pr-{number}.mdand.html
| Level | Meaning | Must fix? |
|---|---|---|
| CRITICAL | Security hole, data loss, or broken functionality | Yes, block merge |
| IMPORTANT | Logic error, performance concern, API misuse | Yes, strong preference |
| SUGGESTION | Better approach exists, worth discussing | Optional |
| NIT | Style, naming, minor clarity | Purely optional |
| PRAISE | Highlight good patterns | Informational |
## Review — owner/repo #123 "Add authentication middleware"
Change Map:
src/middleware/auth.ts +80 / -12 New JWT validation
src/routes/api.ts +14 / -3 Apply middleware to routes
tests/auth.test.ts +60 / -0 Test coverage
CRITICAL src/middleware/auth.ts:47
JWT secret read from process.env without fallback check.
If JWT_SECRET is undefined, all tokens will validate.
Fix: throw at server startup if secret is missing.
IMPORTANT src/routes/api.ts:22
Admin route exposed without role check.
SUGGESTION src/middleware/auth.ts:61
Extract token expiry to a named constant.
Overall: REQUEST CHANGES (1 critical, 1 important)
Saved to .github/reviews/prs/repo-pr-123.md
/review-pr owner/docs-site#88 # Review specific PR
/review-pr # Detect PR from current branch
/review-pr focus on security # Emphasize security findings
/review-pr ignore style comments # Skip NITs
| File | Contents |
|---|---|
.github/reviews/prs/{repo}-pr-{number}.md |
Full review in markdown |
.github/reviews/prs/{repo}-pr-{number}.html |
Accessible HTML version |
| Agent | Role |
|---|---|
| pr-review agent | Executes this prompt |
- pr-report — generate a review document without inline comments
- pr-author-checklist — pre-submit checklist for PR authors
- pr-comment — add a specific comment to a PR
- merge-pr — merge after review is complete
- Accessibility Lead
- Web Accessibility Wizard
- Document Accessibility Wizard
- Alt Text and Headings
- ARIA Specialist
- Contrast Master
- Forms Specialist
- Keyboard Navigator
- Link Checker
- Live Region Controller
- Modal Specialist
- Tables Data Specialist
- Word Accessibility
- Excel Accessibility
- PowerPoint Accessibility
- PDF Accessibility
- Office Scan Config
- PDF Scan Config
- Testing Coach
- WCAG Guide