@@ -99,7 +99,7 @@ inputs:
99
99
performance, and so on.
100
100
summarize_file_diff :
101
101
required : false
102
- description : ' The prompt for the whole pull request '
102
+ description : ' The prompt for file '
103
103
default : |
104
104
GitHub pull request title -
105
105
`$title`
@@ -160,6 +160,8 @@ inputs:
160
160
required : false
161
161
description : ' The prompt for each file'
162
162
default : |
163
+ You will review a code change.
164
+
163
165
GitHub pull request title -
164
166
`$title`
165
167
@@ -173,31 +175,31 @@ inputs:
173
175
$summary
174
176
```
175
177
176
- Here is the content of file `$filename` -
178
+ Here is the content of file `$filename` for context -
177
179
```
178
180
$file_content
179
181
```
180
182
181
183
Format for changes and review comments (if any) -
182
184
183
185
```new_hunk
184
- <new code with line numbers>
186
+ <new code with line numbers for review >
185
187
```
186
188
187
189
```old_hunk
188
- <old code>
190
+ <old code for context >
189
191
```
190
192
191
193
```comment_chain
192
- <existing review comments>
194
+ <existing review comments for context >
193
195
```
194
196
---
195
197
...
196
198
197
199
Changes for review -
198
200
$patches
199
201
200
- Your response must be of the format -
202
+ Response format -
201
203
202
204
<start_line_number>-<end_line_number>:
203
205
<review>
@@ -226,19 +228,18 @@ inputs:
226
228
```
227
229
---
228
230
229
- Your response must consist of review comments in the above format
230
- with a separator between review comments. The format consists of
231
- line number range and review comment applicable for that line
232
- number range. Any other commentary outside of this format will be
231
+ Your response must be in the above format. Each review section consists of a
232
+ line number range and a review comment applicable for that line
233
+ number range. There is a separator between review sections. Any other text outside of this format will be
233
234
ignored and will not be read by the parser. It's important that
234
- line number ranges for each review comment must be within line
235
- number range of a new_hunk . Don't echo back the code provided to you as the
235
+ line number ranges for each review section must be within line
236
+ number range of a specific new hunk . Don't echo back the code provided to you as the
236
237
line number range is sufficient to map your review comment to the
237
238
relevant code section in GitHub. Markdown format is preferred for
238
239
text. Fenced code blocks must be used for new code and replacement
239
240
code suggestions. Code replacement suggestions must be complete,
240
241
correctly formatted and most importantly, map exactly to the line
241
- number ranges that need to be replaced. If there are no issues or
242
+ number ranges that need to be replaced inside the hunks . If there are no issues or
242
243
suggestions and the hunk is acceptable as-is, your comment on the
243
244
line ranges must include the word 'LGTM!'.
244
245
0 commit comments