Agent skill

my-pr-comments

Loads the pr review comments for the current branch.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/my-pr-comments-wodsmith-thewodapp

SKILL.md

Get the current pr number:

bash
gh pr view --json "url" | jq '.url'

Now you can run this command to get all the pr comments in JSON

bash
gh api repos/corpaxe/{reponame}/pulls/{prnumber}/comments --paginate --jq '.[] | {file: .path, line: .line, body: .body, author: .user.login}'

Example:

bash
gh pr view --json "url" | jq '.url'

# outputs
"https://github.com/corpaxe/External.Frontend/pull/2972"

gh api   repos/corpaxe/External.Frontend/pulls/2976/comments | jq '.[] | {file: .path, line: .line, body: .body, author: .user.login}'

Didn't find tool you were looking for?

Be as detailed as possible for better results