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
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.
124
129
125
130
### Direct Mode (`mode: 'direct'`)
126
131
@@ -146,17 +151,19 @@ Sends a query directly to Claude and saves the response to a file without PR con
146
151
147
152
## How It Works
148
153
149
-
1. The action is triggered when a comment with the appropriate prefix is detected on a PR
150
-
2. The action extracts the PR number and the user's query
154
+
1. The action is triggered when a comment with the appropriate prefix is detected (either on the PR or in code review)
155
+
2. The action extracts the PR number, user's query, and (for code review comments) the file path and line number
151
156
3. The repository is checked out to provide full code context
152
157
4. Using GitHub CLI, the action fetches comprehensive information about the PR including:
153
158
- PR metadata
154
-
- List of files changed
159
+
- List of files changed
155
160
- Complete diff of all changes
161
+
- For code review comments, specific file content and context around the commented line
156
162
5. This rich context is provided to Claude along with the user's query
157
163
6. Claude processes the information and provides a helpful response
158
164
7. For review mode: The response is posted as a comment on the PR
159
-
8. For suggest mode: Claude formats responses as GitHub suggested changes that can be applied with one click
165
+
8. For suggest mode: Claude formats responses with code suggestions in the PR comment
166
+
9. For suggest-review mode: Claude creates true GitHub-compatible suggestions attached to specific lines of code
0 commit comments