Repository navigation
Open
Description
The github-code skill's api-surface.md only documents 2 of ~8 endpoints needed for complete PR feedback retrieval. This causes the agent to miss inline review comments, review thread state, and conversation comments when inspecting PRs.
Gaps
- No
reviewThreadsGraphQL query — REST cannot exposeisResolved,isOutdated, orresolvedBy. This is GraphQL-only and completely missing from the surface. - No warning that
gh pr view --json reviewsomits inline review comments —--json commentsreturns conversation comments only,--json reviewsreturns review summaries only. Inline code review comments require/pulls/{number}/commentsor GraphQLreviewThreads/reviews.comments. - Missing
/issues/{number}/comments— conversation comments live at the issues endpoint, not/pulls/{number}/comments(which is inline review comments only). REST equivalent is undocumented. - Missing review-scoped comments endpoint —
GET /pulls/{number}/reviews/{review_id}/commentsfor walking from a review to its inline comments. - Missing direct lookup endpoints — single review comment, single review, single issue comment by ID.
- Missing pagination guidance — no
--paginatedocumentation; PRs with heavy review activity silently truncate. - Missing suggested changes note — suggested changes are embedded in review comment
bodyas markdown suggestion fences, not a separate endpoint. - Missing reactions endpoints —
/pulls/comments/{comment_id}/reactionsand/issues/comments/{comment_id}/reactions.
Recommended Fix
Add a "Complete PR Feedback Retrieval" section with:
REST minimum (3 paginated calls):
gh api --paginate repos/{owner}/{repo}/issues/{number}/comments # conversation comments
gh api --paginate repos/{owner}/{repo}/pulls/{number}/reviews # review summaries
gh api --paginate repos/{owner}/{repo}/pulls/{number}/comments # inline review commentsGraphQL for thread state (1 call):
pullRequest(number: N) {
comments(first: 100) { ... }
reviews(first: 100) { ... }
reviewThreads(first: 100) {
nodes { isResolved isOutdated path line comments(first: 100) { ... } }
}
}Add explicit warning about gh pr view --json field limitations.
Full analysis: https://sentry.slack.com/docs/T024ZCV9U/F0B44A567QE
Action taken on behalf of David Cramer.
Metadata
Metadata
Assignees
Labels
No labels
Activity