Claude Code Plugins

Community-maintained marketplace

Feedback

my-pr-comments

@wodsmith/thewodapp
0
0

Loads the pr review comments for the current branch.

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name my-pr-comments
description Loads the pr review comments for the current branch.
allowed-tools Bash(gh pr view:*), Bash(gh api:*)

Get the current pr number:

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

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

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

Example:

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}'