surshar / claude-code
Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.
Built by Anthropic · github.com/anthropics
fix: Do not comment if --comment is not present
| @@ -56,11 +56,16 @@ | ||
| 56 | 56 | |
| 57 | 57 | 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. |
| 58 | 58 | |
| 59 | -7. If issues were found, skip to step 8 to post inline comments directly. | |
| 59 | +7. Output a summary of the review findings to the terminal: | |
| 60 | + - If issues were found, list each issue with a brief description. | |
| 61 | + - If no issues were found, state: "No issues found. Checked for bugs and CLAUDE.md compliance." | |
| 60 | 62 | |
| 61 | - If NO issues were found, post a summary comment using `gh pr comment` (if `--comment` argument is provided): | |
| 62 | - "No issues found. Checked for bugs and CLAUDE.md compliance." | |
| 63 | + If `--comment` argument was NOT provided, stop here. Do not post any GitHub comments. | |
| 63 | 64 | |
| 65 | + If `--comment` argument IS provided and NO issues were found, post a summary comment using `gh pr comment` and stop. | |
| 66 | + | |
| 67 | + If `--comment` argument IS provided and issues were found, continue to step 8. | |
| 68 | + | |
| 64 | 69 | 8. Create a list of all comments that you plan on leaving. This is only for you to make sure you are comfortable with the comments. Do not post this list anywhere. |
| 65 | 70 | |
| 66 | 71 | 9. Post inline comments for each issue using `mcp__github_inline_comment__create_inline_comment`. For each comment: |
| @@ -85,7 +90,7 @@ | ||
| 85 | 90 | - Use gh CLI to interact with GitHub (e.g., fetch pull requests, create comments). Do not use web fetch. |
| 86 | 91 | - Create a todo list before starting. |
| 87 | 92 | - You must cite and link each issue in inline comments (e.g., if referring to a CLAUDE.md, include a link to it). |
| 88 | -- If no issues are found, post a comment with the following format: | |
| 93 | +- If no issues are found and `--comment` argument is provided, post a comment with the following format: | |
| 89 | 94 | |
| 90 | 95 | --- |
| 91 | 96 |