# PR Comments

Review comments on the current branch's PR and implement changes marked with a thumbs-up reaction.

**Canonical URL:** https://skillshunter.net/skills/discovered-7e6ed2619573301ea90b46cd46acf59b62fb1014663c1734

**JSON URL:** https://skillshunter.net/api/public/v1/skills/discovered-7e6ed2619573301ea90b46cd46acf59b62fb1014663c1734

**Markdown URL:** https://skillshunter.net/skills/discovered-7e6ed2619573301ea90b46cd46acf59b62fb1014663c1734.md

**Instructions download URL:** https://skillshunter.net/skills/discovered-7e6ed2619573301ea90b46cd46acf59b62fb1014663c1734/download

**Category:** Software & Development

**Source URL:** https://github.com/julianbieber/hobby-tooling/blob/420f1f68d0f92201d2a7a51a0c463784e1e49405/skills/pr-comments/skill.md

**Source commit:** 420f1f68d0f92201d2a7a51a0c463784e1e49405

**Listing approved at:** 2026-11-30

**Created at:** 2026-11-29T11:13:25.000000Z

**Updated at:** 2026-11-30T06:52:26.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Ensure the `gh` CLI is installed and authenticated before running commands. Use `gh pr view --json number,url` to confirm the current PR exists.

### When to use it

- Automatically address feedback on pull requests
- Filter and prioritize comments with thumbs-up reactions
- Ensure resolved comments are skipped during review

## Skill instructions

---
description: Review PR comments and work on thumbs-up marked items
allowed-tools: Bash, Read, Grep, Edit, Write
---

Review comments on the current PR and work on comments marked with a thumbs up.

## Instructions

1. **Get the current PR**:

   - Run `gh pr view --json number,url` to get the current branch's PR
   - If no PR exists, inform the user

2. **Fetch PR comments**:

   - Get review comments: `gh pr view --json reviews,comments`
   - Get inline/diff comments:
     `gh api repos/{owner}/{repo}/pulls/{pr_number}/comments`

3. **Identify actionable comments**:

   - **Skip resolved comments** — filter out any comment threads that are
     already resolved (check for `"isResolved": true` or equivalent in the API
     response)
   - Look for comments with a thumbs up reaction (`:+1:` or `👍`)
   - To check reactions:
     `gh api repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions`
   - A thumbs up indicates the user wants you to address this comment

4. **For each thumbs-up comment**:

   - Show the comment content and file location
   - Understand what change is being requested
   - Implement the requested change
   - Mark progress as you go

5. **Summary**:

   - List all comments found
   - Indicate which had thumbs up and were worked on
   - Note any comments that were unclear or couldn't be addressed

## Useful gh commands

```bash
# Get PR number for current branch
gh pr view --json number -q '.number'

# Get repo owner/name
gh repo view --json nameWithOwner -q '.nameWithOwner'

# Get all review comments with details (includes resolved threads via GraphQL)
gh api graphql -f query='query { repository(owner:"{owner}", name:"{repo}") { pullRequest(number:{number}) { reviewThreads(first:100) { nodes { isResolved comments(first:10) { nodes { id databaseId body path line author { login } } } } } } } }'

# Fallback: REST API for review comments (no resolved status)
gh api repos/{owner}/{repo}/pulls/{number}/comments

# Check reactions on a comment
gh api repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions
```

