You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Post comments for EVERY significant issue you find (not just a summary)
131
+
- Keep the body text concise and use \n for line breaks within the body parameter
132
+
133
+
**Inline Comment Format:**
134
+
- Use emoji severity: 🔴 Critical | 🟡 Important | 🔵 Consider
135
+
- Start with **[Category]** (Security/Logic/Performance/Architecture/Testing)
136
+
- Explain the issue clearly
137
+
- Provide actionable fix or suggestion
138
+
- Reference CLAUDE.md patterns when applicable
139
+
140
+
**Example:**
141
+
```
142
+
🔴 **[Security]**: Potential SQL injection vulnerability. User input is concatenated directly into SQL query.\n\n**Fix:** Use parameterized queries:\n\`\`\`typescript\nconst result = await query('SELECT * FROM users WHERE name = $1', [userName]);\n\`\`\`
143
+
```
144
+
145
+
Note: In the actual gh command, newlines are represented as \n within the body parameter.
146
+
147
+
### Step 4: Post Summary Comment
148
+
After posting inline comments, create a summary with:
149
+
- Review statistics (files, lines, issues)
150
+
- Severity breakdown (🔴, 🟡, 🔵 counts)
151
+
- Key findings (2-3 most critical issues)
152
+
- What looks good (2-3 positive aspects)
153
+
- Note that lint/build are automated
154
+
155
+
Use `gh pr comment` to post the summary.
156
+
157
+
## Guidelines
158
+
159
+
- **Be selective**: Only comment on significant issues worth a human's attention
160
+
- **Be specific**: Reference exact lines, provide clear fixes
161
+
- **Be constructive**: Explain the "why" behind suggestions
162
+
- **Be project-aware**: Use CLAUDE.md patterns and terminology
163
+
- **Don't duplicate**: Skip issues automated tools will catch
66
164
67
165
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
68
166
# or https://docs.claude.com/en/docs/claude-code/cli-reference for available options
0 commit comments