1 pointby Nittarab6 hours ago1 comment
  • Nittarab6 hours ago
    I built a GitHub CLI extension that fetches PR reviews, inline comments, and conversation threads, and outputs them as compact markdown optimized for LLM context windows. The problem: I wanted to pipe PR review feedback into AI coding agents, but the GitHub REST API doesn't expose thread resolution status, and the raw data is verbose. Copy-pasting from the UI wastes tokens and loses structure. gh-pr-reviews uses the GraphQL API to get everything in one paginated query -- reviews, inline comment threads (with resolved/unresolved status), and conversation comments -- then formats it as minimal markdown: file:line notation, inline state brackets, no fluff. gh pr-reviews --reviewer copilot-pull-request-reviewer --last 1 owner/repo 42 Example output: ## @alice [CHANGES_REQUESTED] 2024-01-15 Please fix the error handling. - file1.go:42 — Rename this variable to be more descriptive - pkg/api.go:10-15 — This function needs error handling Install: gh extension install Nittarab/gh-pr-reviews It also ships as an agent skill for Claude Code / OpenCode so your coding agent can fetch reviews autonomously.

    npx skills add Nittarab/gh-pr-reviews@skills