-
Notifications
You must be signed in to change notification settings - Fork 6
Pr Comment
github-actions[bot] edited this page Feb 23, 2026
·
1 revision
Add a specific, targeted comment to a pull request — on a specific line, a specific file, or as a general PR comment. The agent batches all your comments into a single pending review and submits once.
- Leaving feedback on specific lines of a PR
- Asking a clarifying question about a particular change
- Requesting a specific change before approving
- Adding a note to a PR thread for the author
In GitHub Copilot Chat:
/pr-comment owner/repo#123 "Your comment text here"
With line targeting:
/pr-comment owner/repo#123 src/auth.ts:47 "JWT secret should have a fallback"
- Parse comment intent — Identifies target PR, target file/line (if specified), and comment content
- Classify priority — CRITICAL / IMPORTANT / SUGGESTION / NIT / PRAISE based on content
- Build pending review — Adds to a pending review batch (never posts immediately as isolated comments)
- Preview and confirm — Shows you exactly what will be posted and asks for confirmation
- Submit review — Posts all batched comments as one review with a summary verdict
| Label | Auto-detected when content contains... |
|---|---|
| CRITICAL | security, vulnerability, data loss, breaking |
| IMPORTANT | bug, error, incorrect, missing check |
| SUGGESTION | consider, alternatively, could |
| NIT | minor, style, naming, whitespace |
| PRAISE | great, well done, nice pattern |
You: /pr-comment owner/repo#123 src/auth.ts:47 "JWT secret will be undefined if env var missing — this will accept all tokens"
Agent: Comment preview:
File: src/auth.ts, line 47
Priority: CRITICAL
Text: "JWT secret will be undefined if env var missing — this will accept all tokens"
Submit? (yes/no/edit)
You: yes
Agent: Comment posted to #123 as part of pending review.
Use /review-pr to submit the full review when ready.
The agent never posts a comment without your confirmation. All comments go into a pending review and are submitted together — not as scattered inline replies — which is consistent with GitHub's review model.
/pr-comment owner/repo#123 "Overall this looks good, just one concern"
/pr-comment #123 src/utils.ts:88 "This function name is misleading"
/pr-comment #123 nit: "extra blank line on line 22"
/pr-comment #123 praise: "Great test coverage on the edge cases"
| Agent | Role |
|---|---|
| pr-review agent | Executes this prompt |
- review-pr — full review with all comments at once
- address-comments — track and resolve incoming review comments
- pr-author-checklist — check your own PR before requesting review
- 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