Loading...
Loading...
Compare original and translation side by side
$ARGUMENTS$ARGUMENTS--limithead -ntail -nper_page~/.claude/scripts/safe-read.sh--limithead -ntail -nper_page~/.claude/scripts/safe-read.shgh pr view $PR --json number,title,headRefName,baseRefName,mergeable,reviewDecision,statusCheckRollup
gh pr checks $PR --json name,state,startedAt,completedAt,link
gh pr view $PR --json body --jq '.body | split("\n")[:80] | join("\n")'BASE="$(gh pr view $PR --json baseRefName --jq .baseRefName)"
git fetch origin "$BASE"gh pr view $PR --json number,title,headRefName,baseRefName,mergeable,reviewDecision,statusCheckRollup
gh pr checks $PR --json name,state,startedAt,completedAt,link
gh pr view $PR --json body --jq '.body | split("\n")[:80] | join("\n")'BASE="$(gh pr view $PR --json baseRefName --jq .baseRefName)"
git fetch origin "$BASE"mergeable != CONFLICTINGgit rebase "origin/$BASE"git-mastery/references/conflict-resolution.mdgit rebase --continuemergeable != CONFLICTINGgit rebase "origin/$BASE"git-mastery/references/conflict-resolution.mdgit rebase --continueundefinedundefined/fix-cigit push --force-with-lease/fix-ci/fix-ci/fix-cigit push --force-with-lease/fix-ci/fix-ciBASE="$(gh pr view $PR --json baseRefName --jq .baseRefName)"
git diff "origin/$BASE"...HEAD_console.warnconsole.errorBASE="$(gh pr view $PR --json baseRefName --jq .baseRefName)"
git diff "origin/$BASE"...HEAD_useMemouseCallbackconsole.warnconsole.errorreviewDecisionOWNER="$(gh repo view --json owner --jq .owner.login)"
REPO="$(gh repo view --json name --jq .name)"reviewDecisionOWNER="$(gh repo view --json owner --jq .owner.login)"
REPO="$(gh repo view --json name --jq .name)"undefinedundefined/issues/$PR/comments/pulls/$PR/commentsreviewThreadsundefined/issues/$PR/comments/pulls/$PR/commentsreviewThreadsundefined
Filter for comments that contain actionable review feedback (code suggestions, bug findings, security concerns). Ignore:
- Status/summary comments (CI reports, merge readiness checks)
- Comments you've already replied to with fixes
- Informational comments with no action items
For each bot comment with actionable findings:
1. **Read the FULL comment body** — no truncation
2. **Extract each finding** — bots typically number them or use headers
3. **Read the current file** to check if already addressed
4. **Fix or defer** each finding (same as review comments below)
5. **Reply to the comment** with resolution status for each finding
筛选出包含可操作评审反馈的评论(代码建议、错误发现、安全问题)。忽略以下内容:
- 状态/总结评论(CI报告、合并就绪检查)
- 已回复过修复情况的评论
- 无操作项的信息性评论
针对每条包含可操作发现的机器人评论:
1. **阅读完整的评论内容**——不要截断
2. **提取每个发现的问题**——机器人通常会编号或使用标题
3. **阅读当前文件**以检查问题是否已解决
4. **修复或推迟**每个问题(与下方的评审评论处理方式相同)
5. **回复评论**,说明每个问题的解决状态.body[:N]undefined.body[:N]undefined
For each comment without a reply from this PR's author:
- If **already fixed in code**: reply with commit SHA + current line reference confirming the fix
- If **needs fixing**: fix it, then reply with commit SHA
- If **deferred**: reply with follow-up issue number
- If **declined**: reply with public reasoning
Bot feedback (CodeRabbit, Cerberus, Gemini, Codex) gets the same treatment as human feedback.
针对每条PR作者未回复的评论:
- 如果**代码中已修复**:回复提交SHA和当前行引用以确认修复
- 如果**需要修复**:修复后回复提交SHA
- 如果**推迟处理**:回复后续Issue编号
- 如果**拒绝采纳**:回复公开的理由
机器人反馈(CodeRabbit、Cerberus、Gemini、Codex)与人类反馈的处理方式相同。/respond/address-reviewgh api repos/$OWNER/$REPO/pulls/$PR/comments/$ID/replies -f body='...'undefined/respond/address-reviewgh api repos/$OWNER/$REPO/pulls/$PR/comments/$ID/replies -f body='...'undefined
Additive commits do NOT make comments outdated. Only changes to the diff hunk a comment is attached to trigger outdating. Resolve explicitly.
追加提交不会使评论过时。只有修改评论所附加的差异块才会触发过时。必须显式解决线程。git push --force-with-lease/fix-cigit push --force-with-lease/fix-ciundefinedundefined
**Text (MANDATORY)**: Describe the blocked state (before) and the unblocked state (after).
Example: "Before: CI failing on type error in auth module. After: Types corrected, CI green."
**Screenshots (when applicable)**: Capture before/after for any visible change — CI status pages, error output, UI changes from review fixes. Use `` / ``.
Skip screenshots only when all fixes are purely internal (conflict resolution with no behavior change, CI config fixes with no visible output difference).
**必填文本**:描述阻塞状态(之前)和解锁状态(之后)。
示例:“之前:CI因认证模块中的类型错误失败。之后:已修正类型,CI通过。”
**截图(适用时)**:捕获任何可见变更的“之前/之后”——CI状态页面、错误输出、评审修复带来的UI变更。使用`` / ``格式。
仅当所有修复均为纯内部变更(无行为变更的冲突解决、无可见输出差异的CI配置修复)时,才可跳过截图.gh pr comment $PR --body "$(cat <<'EOF'gh pr comment $PR --body "$(cat <<'EOF'undefinedundefined.body[:N]resolveReviewThread/issues/$PR/comments/pulls/$PR/comments.body[:N]resolveReviewThread/issues/$PR/comments/pulls/$PR/comments