{"data":{"slug":"discovered-7e6ed2619573301ea90b46cd46acf59b62fb1014663c1734","title":"PR Comments","summary":"Review comments on the current branch's PR and implement changes marked with a thumbs-up reaction.","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","download_url":"https:\/\/skillshunter.net\/skills\/discovered-7e6ed2619573301ea90b46cd46acf59b62fb1014663c1734\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_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.","instructions":"---\ndescription: Review PR comments and work on thumbs-up marked items\nallowed-tools: Bash, Read, Grep, Edit, Write\n---\n\nReview comments on the current PR and work on comments marked with a thumbs up.\n\n## Instructions\n\n1. **Get the current PR**:\n\n   - Run `gh pr view --json number,url` to get the current branch's PR\n   - If no PR exists, inform the user\n\n2. **Fetch PR comments**:\n\n   - Get review comments: `gh pr view --json reviews,comments`\n   - Get inline\/diff comments:\n     `gh api repos\/{owner}\/{repo}\/pulls\/{pr_number}\/comments`\n\n3. **Identify actionable comments**:\n\n   - **Skip resolved comments** \u2014 filter out any comment threads that are\n     already resolved (check for `\"isResolved\": true` or equivalent in the API\n     response)\n   - Look for comments with a thumbs up reaction (`:+1:` or `\ud83d\udc4d`)\n   - To check reactions:\n     `gh api repos\/{owner}\/{repo}\/pulls\/comments\/{comment_id}\/reactions`\n   - A thumbs up indicates the user wants you to address this comment\n\n4. **For each thumbs-up comment**:\n\n   - Show the comment content and file location\n   - Understand what change is being requested\n   - Implement the requested change\n   - Mark progress as you go\n\n5. **Summary**:\n\n   - List all comments found\n   - Indicate which had thumbs up and were worked on\n   - Note any comments that were unclear or couldn't be addressed\n\n## Useful gh commands\n\n```bash\n# Get PR number for current branch\ngh pr view --json number -q '.number'\n\n# Get repo owner\/name\ngh repo view --json nameWithOwner -q '.nameWithOwner'\n\n# Get all review comments with details (includes resolved threads via GraphQL)\ngh 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 } } } } } } } }'\n\n# Fallback: REST API for review comments (no resolved status)\ngh api repos\/{owner}\/{repo}\/pulls\/{number}\/comments\n\n# Check reactions on a comment\ngh api repos\/{owner}\/{repo}\/pulls\/comments\/{comment_id}\/reactions\n```\n","use_cases":["Automatically address feedback on pull requests","Filter and prioritize comments with thumbs-up reactions","Ensure resolved comments are skipped during review"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/julianbieber\/hobby-tooling\/blob\/420f1f68d0f92201d2a7a51a0c463784e1e49405\/skills\/pr-comments\/skill.md","source_commit":"420f1f68d0f92201d2a7a51a0c463784e1e49405","license":null,"version":null,"listing_approved_at":"2026-11-30","created_at":"2026-11-29T11:13:25.000000Z","updated_at":"2026-11-30T06:52:26.000000Z","seo_title":"Review and Implement Thumbs-Up PR Comments","seo_description":"Automatically review pull request comments and implement changes marked with a thumbs-up reaction using the GitHub CLI.","seo_keywords":["github pr comments","pull request feedback","thumbs-up comments","github cli automation","code review automation"]}}