Maintenance in progress: we are indexing a large batch of new skills. Some pages may load slowly or briefly show no results. Nothing is lost, and everything is back to normal within the hour.

My Pr Comments

Loads the pr review comments for the current branch.

majiayu000 6d65187 2 files · 1.2 KB Updated 567 repo stars

File contents

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

majiayu000/claude-skill-registry-data/tree/main/data/my-pr-comments commit 6d65187579

Frequently asked questions

npx skillmds add majiayu000/my-pr-comments