feat(review): add commit tip for local reviews with Approve verdict

After local review with no critical issues, suggest "type commit to
commit your changes" — the follow-up system picks this up as ghost
text so users can Tab to commit.

PR reviews keep the existing "post comments" tip.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
wenshao 2026-04-07 00:36:38 +08:00
parent 0b290e7031
commit 5ff22dcd4f

View file

@ -290,8 +290,10 @@ One of:
- **Request changes** — Has critical issues that need fixing
- **Comment** — Has suggestions but no blockers
If the review target is a PR and there are confirmed findings, append a tip after the verdict:
"Tip: type `post comments` to publish these findings as PR inline comments."
Append a follow-up tip after the verdict based on the review target:
- **PR review with confirmed findings**: "Tip: type `post comments` to publish these findings as PR inline comments."
- **Local review with Approve verdict**: "Tip: type `commit` to commit your changes."
If the user responds with "post comments" (or similar intent like "yes post them", "publish comments"), proceed directly to Step 4 using the findings already collected — do NOT re-run Steps 1-3.5.