smithery/bumgeunsong

fetching-pr-comments

Use when needing to check PR review comments on current branch, before addressing reviewer feedback, or when asked to fetch/review PR comments

Installation

$ npx skills add smithery/bumgeunsong --skill fetching-pr-comments

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/bumgeunsong.

npx skills add smithery/bumgeunsong

Browse all from smithery/bumgeunsong

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,761 B
  • docs SUMMARY.md 170 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Fetching PR Comments

Overview

Retrieve and parse GitHub PR review comments for the current branch using gh CLI.

Quick Reference

Task Command
Check if PR exists gh pr view
View PR with issue comments gh pr view --comments
Fetch review comments (code-level) gh api repos/{owner}/{repo}/pulls/{n}/comments
Extract key fields `--jq '.[] \ {path, line, body}'`

Workflow

  1. Get PR number for current branch:

``bash gh pr view --json number --jq '.number' ``

  1. Fetch review comments:

``bash gh api repos/{owner}/{repo}/pulls/{n}/comments \ --jq '.[] | {path: .path, line: .line, body: .body}' ``

  1. Full command (single step):

``bash gh api repos/OWNER/REPO/pulls/$(gh pr view --json number -q .number)/comments \ --jq '.[] | {path: .path, line: .line, body: .body}' ``

Important Distinctions

Type What it shows How to get
Issue comments PR-level discussion gh pr view --comments
Review comments Code-level feedback gh api .../pulls/{n}/comments

Common Patterns

Check if current branch has a PR:

gh pr view 2>/dev/null && echo "PR exists" || echo "No PR"

Get PR details + comments in one view:

gh pr view --comments

Fetch specific PR by number:

gh pr view 429 --repo owner/repo --comments

When NOT to Use

  • Creating new PRs (use gh pr create)
  • Reviewing diffs (use gh pr diff)
  • Merging (use gh pr merge)