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
| `file-path` | Path to the file being reviewed (for suggest-review mode) | No** | |
101
+
| `line-number` | Line number in the file (for suggest-review mode) | No** | |
102
+
| `comment-id` | GitHub comment ID to reply to (for suggest-review mode) | No** | |
103
+
| `strict-mode` | Whether to strictly follow user requests without adding unrelated improvements | No | `true` |
100
104
| `anthropic-api-key` | Anthropic API key | Yes | |
101
105
| `github-token` | GitHub token | Yes | |
102
106
| `output-file` | Output file path (for direct mode) | No | `claude-code-output` |
103
107
104
-
\* Required when mode is 'review' or 'suggest'
108
+
\* Required when mode is 'review' or 'suggest'
109
+
\** Required when mode is 'suggest-review'
105
110
106
111
## Enhanced Context for Claude
107
112
108
-
With version 0.2.1, Claude now receives complete context for your PRs, including:
113
+
With version 0.2.2, Claude now receives complete context for your PRs, including:
109
114
110
115
- PR metadata (title, description, branch info)
111
116
- List of all files changed
@@ -127,6 +132,8 @@ Creates suggested changes in a PR comment that outline potential code improvemen
127
132
128
133
Creates true GitHub-compatible suggestions that can be applied with one click directly from the code review interface. These are attached to specific lines of code.
129
134
135
+
By default, this mode uses "strict mode" which ensures Claude only makes changes specifically related to what was requested, without adding unrelated improvements. You can disable strict mode by setting `strict-mode: 'false'` to allow Claude to suggest additional improvements.
136
+
130
137
### Direct Mode (`mode: 'direct'`)
131
138
132
139
Sends a query directly to Claude and saves the response to a file without PR context.
ADDITIONAL_CONTENT="## Additional Suggestions\n\nWhile addressing your specific request, I noticed some other potential improvements:\n\n$(cat "$ADDITIONAL_SUGGESTIONS_FILE")\n\n*These are optional suggestions beyond what you specifically requested.*"
163
+
gh api --method POST "/repos/:owner/:repo/pulls/$PR_NUMBER/comments/$COMMENT_ID/replies" \
0 commit comments