Skip to content

Commit 87e4863

Browse files
chore: enable it to run locally
1 parent dcc3cc7 commit 87e4863

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.claude/skills/code-review/SKILL.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,12 @@ When a PR touches multiple packages, validate each changed package separately:
254254
255255
## Output format
256256
257-
Always post one summary comment. Use inline comments for issues that reference a specific line; use the summary comment for file-level or cross-cutting issues.
257+
**Determine the execution context first** by checking whether the `CI` environment variable is set (`echo $CI`):
258+
259+
- **CI environment** (`CI=true`): post the review as a PR comment using `gh`, following the template below.
260+
- **Local environment** (`CI` unset or empty): print the review directly to the terminal in the same format. Do NOT post any `gh` comment.
261+
262+
Use inline comments for issues that reference a specific line; use the summary comment/output for file-level or cross-cutting issues.
258263
259264
### Summary comment template
260265

0 commit comments

Comments
 (0)