mirror of
https://github.com/Piebald-AI/claude-code-system-prompts.git
synced 2026-11-20 08:01:53 +08:00
17 lines
790 B
Markdown
17 lines
790 B
Markdown
<!--
|
|
name: "Agent Prompt: /code-review part 8 GitHub comment posting"
|
|
description: "Optional /code-review instructions for posting findings as GitHub inline PR comments when --comment is passed"
|
|
ccVersion: "2.1.147"
|
|
-->
|
|
|
|
|
|
## Posting to GitHub (--comment)
|
|
|
|
The `--comment` flag was passed. After producing the findings list, if the
|
|
review target is a GitHub PR, post each finding as an inline PR comment via
|
|
`mcp__github_inline_comment__create_inline_comment` (one call per finding;
|
|
include a suggestion block only when it fully fixes the issue). If that tool
|
|
is not available in this session, fall back to `gh api` (repos/{owner}/{repo}/pulls/{pr}/comments)
|
|
or print the findings instead. If the target is not a PR, print the findings
|
|
to the terminal and note that `--comment` was ignored.
|