Skip to content

feat(cli): add /pr-comments to triage PR review comments#164

Merged
emal-avala merged 2 commits intomainfrom
feat/cmd-pr-comments
Apr 22, 2026
Merged

feat(cli): add /pr-comments to triage PR review comments#164
emal-avala merged 2 commits intomainfrom
feat/cmd-pr-comments

Conversation

@emal-avala
Copy link
Copy Markdown
Member

Summary

Adds `/pr-comments` — fetches PR review comments via `gh` and produces a triage list.

  • `/pr-comments` — current branch's PR
  • `/pr-comments ` — specific PR

Groups results into:

  • unresolved inline threads (file:line + short quote)
  • action-requested issue comments (questions, change requests)
  • resolved threads (skipped — don't re-open settled discussion)

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:

  • never respond to reviewers without user go-ahead
  • never mark threads resolved (reviewer's call)

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

  • `cargo fmt --all` clean
  • `cargo check` passes
  • `cargo clippy --no-deps` clean
  • Manual: `/pr-comments` on a branch with an open PR produces a triage list
  • Manual: `/pr-comments 123` fetches comments on PR 123 explicitly
  • Manual: `/pr-comments` with no open PR returns a clear abort message

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.
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@emal-avala emal-avala merged commit 8675b2c into main Apr 22, 2026
13 of 14 checks passed
@emal-avala emal-avala deleted the feat/cmd-pr-comments branch April 22, 2026 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant