feat(cli): add /pr-comments to triage PR review comments#164
Merged
emal-avala merged 2 commits intomainfrom Apr 22, 2026
Merged
feat(cli): add /pr-comments to triage PR review comments#164emal-avala merged 2 commits intomainfrom
emal-avala merged 2 commits intomainfrom
Conversation
Fetches inline + issue-style comments from GitHub, groups them into (unresolved | action-requested | resolved), and prints a triage list with file:line + a suggested response or fix per item. Rules baked into the prompt: - never post responses without user go-ahead - never mark threads resolved (reviewer's call) - skip already-resolved threads - ordered by importance (blocking first, nits last) `/pr-comments` defaults to the current branch's PR; `/pr-comments <n>` targets a specific number.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds `/pr-comments` — fetches PR review comments via `gh` and produces a triage list.
Groups results into:
For each unresolved item: author, quote, suggested response OR concrete code fix. Ends with a numbered action list ordered by importance.
Guardrails in the prompt:
Why
Reviewing PR feedback typically means: open the PR in browser, scroll through threads, keep a scratch list of what's actionable. This does steps 1–3 in the terminal and hands back a prioritized action list — agent stops before writing anything, so the user decides what to address.
Test plan