mirror of
https://github.com/anthropics/claude-code.git
synced 2026-05-02 18:47:09 +00:00
feat(code-review): Make local-only output the default behavior
Change default to output review to terminal only. Users must now pass --comment to post to GitHub PR. This is more convenient for local development where posting to PRs is usually not desired.
This commit is contained in:
@@ -6,7 +6,7 @@ description: Code review a pull request
|
||||
Provide a code review for the given pull request.
|
||||
|
||||
**Arguments:**
|
||||
- `--no-comment`: Skip posting the review as a PR comment. Instead, output the review to the terminal only. This is useful when running locally and you don't want to post to GitHub.
|
||||
- `--comment`: Post the review as a PR comment on GitHub. By default, the review is output to the terminal only.
|
||||
|
||||
To do this, follow these steps precisely:
|
||||
|
||||
@@ -56,8 +56,8 @@ Note: Still review Claude generated PR's.
|
||||
6. Filter out any issues that were not validated in step 5. This step will give us our list of high signal issues for our review.
|
||||
|
||||
7. Finally, output the review:
|
||||
- If `--no-comment` was passed as an argument, output the review directly to the terminal (do NOT post to GitHub)
|
||||
- Otherwise, post the review as a comment on the pull request using `gh pr comment`
|
||||
- If `--comment` was passed as an argument, post the review as a comment on the pull request using `gh pr comment`
|
||||
- Otherwise, output the review directly to the terminal (do NOT post to GitHub)
|
||||
|
||||
When writing your review, follow these guidelines:
|
||||
a. Keep your output brief
|
||||
|
||||
Reference in New Issue
Block a user