# My Pr Comments

> Loads the pr review comments for the current branch.

- Skill: `majiayu000/my-pr-comments` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/my-pr-comments`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/my-pr-comments/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/my-pr-comments

---

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

