Skip to content

Add pr-comments plugin with resolved/unresolved filtering#22361

Open
avshyz wants to merge 3 commits intoanthropics:mainfrom
avshyz:add-pr-comments-plugin
Open

Add pr-comments plugin with resolved/unresolved filtering#22361
avshyz wants to merge 3 commits intoanthropics:mainfrom
avshyz:add-pr-comments-plugin

Conversation

@avshyz
Copy link
Copy Markdown

@avshyz avshyz commented Feb 1, 2026

Summary

Adds a new plugin that fetches PR comments using GitHub's GraphQL API, enabling filtering by resolution status (the "Resolve conversation" button).

Why

The REST API doesn't expose the isResolved field on review threads. This plugin uses the GraphQL API which has access to reviewThreads.isResolved.

Usage

/pr-comments:show              # all comments
/pr-comments:show unresolved   # only unresolved threads
/pr-comments:show resolved     # only resolved threads

Plugin Structure

plugins/pr-comments/
├── .claude-plugin/
│   └── plugin.json
├── commands/
│   └── show.md
└── README.md

Closes #22355

Uses GitHub GraphQL API to access the isResolved field on reviewThreads,
which maps to the 'Resolve conversation' button in the GitHub UI.

The REST API doesn't expose this field, so this plugin complements
the built-in /pr-comments command by adding resolution filtering.

Usage:
  /pr-comments:pr-comments              # all comments
  /pr-comments:pr-comments unresolved   # only unresolved
  /pr-comments:pr-comments resolved     # only resolved

Closes anthropics#22355
/pr-comments:show unresolved
instead of
/pr-comments:pr-comments unresolved
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.

Enhance /pr-comments to filter unresolved conversations using GraphQL

1 participant