mit einem Klick
inline-pr-comments
// Post a single consolidated PR review with summary and inline comments. Use this skill to deliver code review feedback as one unified review per run.
// Post a single consolidated PR review with summary and inline comments. Use this skill to deliver code review feedback as one unified review per run.
| name | inline-pr-comments |
| description | Post a single consolidated PR review with summary and inline comments. Use this skill to deliver code review feedback as one unified review per run. |
Use this skill to submit code review feedback as a single consolidated GitHub review containing both the summary body and all inline comments.
Submit one consolidated review per run using the GitHub API. Do NOT post inline comments individually. Each run produces a new review — nothing is overwritten.
Before reviewing, read existing reviews and comments on the PR for context:
# Fetch existing reviews (summaries)
gh api --paginate "repos/$GITHUB_REPOSITORY/pulls/$PR_NUMBER/reviews" --jq '.[] | {user: .user.login, state: .state, body: .body}'
# Fetch inline review comments
gh api --paginate "repos/$GITHUB_REPOSITORY/pulls/$PR_NUMBER/comments" --jq '.[] | {user: .user.login, path: .path, line: .line, body: .body}'
# Fetch general PR discussion comments
gh api --paginate "repos/$GITHUB_REPOSITORY/issues/$PR_NUMBER/comments" --jq '.[] | {user: .user.login, body: .body}'
Use this context to:
Complete the full review. Collect:
Write a JSON file to /tmp/review.json:
{
"body": "## Review Summary\n\nOverall assessment here.\n\n## Observations Outside This PR\n- `file:line`: description",
"event": "COMMENT",
"comments": [
{
"path": "docs/file.mdx",
"line": 42,
"body": "Issue description here"
},
{
"path": "docs/other.mdx",
"start_line": 10,
"line": 15,
"body": "Multi-line comment"
}
]
}
Fields:
body — Markdown review summary (required)event — Always "COMMENT" (never APPROVE or REQUEST_CHANGES)comments — Array of inline comment objects (can be empty if no inline findings)
path — File path relative to repo rootline — Line number in the NEW version of the filestart_line + line — For multi-line commentsbody — Markdown-formatted feedbackgh api "repos/$GITHUB_REPOSITORY/pulls/$PR_NUMBER/reviews" --input /tmp/review.json
The GITHUB_REPOSITORY and PR_NUMBER environment variables are set by the CI workflow.
Issues in code NOT changed by the PR go in the review body under a dedicated section:
## Observations Outside This PR
- `docs/guides/foo.mdx:142`: Outdated reference
- `docs/reference/bar.mdx:78-82`: Similar issue to line 45
| Feedback Type | In Diff? | Where to Put It |
|---|---|---|
| Specific content issue | Yes | comments array entry for that line |
| Pattern repeated across files | Yes | First occurrence in comments + note others in body |
| Related issue found | No | body under "Observations Outside This PR" |
| Pre-existing issue discovered | No | body (consider separate issue if critical) |
| Overall structural concern | N/A | body |
Be concise. Group minor style issues together. Never use APPROVE or REQUEST_CHANGES.