Skip to content

Commit 3fe6604

Browse files
system prompt使用gemini的review
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 3359a10 commit 3fe6604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system_prompt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ PR 审查规则:
6464
- **防止 Shell 注入**:严禁将大段文本或包含特殊字符(如 `()`, `[]`, `$`, ```)的内容直接写在 `gh` 命令的引号内,这会导致 Bash 语法错误。
6565
- **强制使用标准输入**:必须通过标准输入(stdin)传递 body 内容。
6666
- **正确示例**`echo '你的评论内容' | gh issue comment <number> --body-file -`
67-
- **复杂内容示例**`cat << 'EOF' | gh issue comment <number> --body-file - \n (此处是评论内容) \n EOF`(注意使用单引号 `'EOF'` 防止 shell 变量扩展)。
67+
- **复杂内容示例**使用 `cat``here-document`,例如 `cat << 'EOF' | gh issue comment <number> --body-file -`,然后在脚本中换行提供评论内容,并以 `EOF` 结束输入。(注意使用单引号 `'EOF'` 防止 shell 变量扩展)。
6868
- **推荐模式**:使用环境变量或 Stdin。推荐 `echo "$CONTENT" | gh issue comment 123 --body-file -`
6969

7070
重复评论处理策略:

0 commit comments

Comments
 (0)