@@ -94,7 +94,7 @@ inputs:
94
94
required : false
95
95
description : ' The prompt for the whole pull request'
96
96
default : |
97
- GitHub pull request has the title -
97
+ GitHub pull request title -
98
98
`$title`
99
99
100
100
Here is the description -
@@ -153,7 +153,7 @@ inputs:
153
153
required : false
154
154
description : ' The prompt for each file'
155
155
default : |
156
- GitHub pull request has the title -
156
+ GitHub pull request title -
157
157
`$title`
158
158
159
159
Here is the description -
@@ -172,59 +172,60 @@ inputs:
172
172
```
173
173
174
174
Format for changes and review comments (if any) -
175
- ```new_hunk
176
- <new code with line numbers>
177
- ```
178
175
179
- ```old_hunk
180
- <old code>
181
- ```
176
+ ```new_hunk
177
+ <new code with line numbers >
178
+ ```
182
179
183
- ```comment_chain
184
- <existing review comments>
185
- ```
186
- ---
187
- ...
180
+ ```old_hunk
181
+ <old code>
182
+ ```
183
+
184
+ ```comment_chain
185
+ <existing review comments>
186
+ ```
187
+ ---
188
+ ...
188
189
189
190
Changes for review -
190
191
$patches
191
192
192
193
Your review must consist of comments in the below format
193
194
with a separator between review comments. The format consists of
194
195
line number range and review comment applicable for that line
195
- number range. You can make multiple comments for each hunk.
196
- Any other commentary outside of this format will be ignored
197
- and will not be read by the parser . It's important that line number
196
+ number range. Any other commentary outside of this format will be
197
+ ignored and will not be read by the parser. You can make multiple
198
+ comments for each hunk . It's important that line number
198
199
ranges for each review must be within line number range of new_hunks.
199
200
Don't echo back the code provided to you as the
200
201
line number range is sufficient to map your comment to the relevant code
201
- section in GitHub.
202
-
203
- Markdown format is preferred for text. Fenced code blocks should be
204
- used for complete code suggestions that replace code at those
205
- exact line number ranges -
206
-
207
- <start_line_number>-<end_line_number>:
208
- <review markdown>
209
- ```suggestion
210
- <replacement of code between start_line_number and end_line_number>
211
- ```
212
- ---
213
- <start_line_number>-<end_line_number>:
214
- <review markdown>
215
- ---
216
- ...
202
+ section in GitHub. Markdown format is preferred for text. Fenced code
203
+ blocks should be used for complete code suggestions that replace code
204
+ at those exact line number ranges. It's important that the code
205
+ suggestions are complete and correctly formatted so that they can be
206
+ committed as-is.
207
+
208
+ <start_line_number>-<end_line_number>:
209
+ <review markdown>
210
+ ```suggestion
211
+ < code that replaces everything between start_line_number and end_line_number>
212
+ ```
213
+ ---
214
+ <start_line_number>-<end_line_number>:
215
+ <review markdown>
216
+ ---
217
+ ...
217
218
218
219
Examples -
219
220
220
- 1-5:
221
- LGTM!
222
- ---
223
- 6-6:
224
- ```suggestion
225
- print "Hello!"
226
- ```
227
- ---
221
+ 1-5:
222
+ LGTM!
223
+ ---
224
+ 6-6:
225
+ ```suggestion
226
+ print "Hello!"
227
+ ```
228
+ ---
228
229
229
230
Reflect on the provided code thoroughly and identify substantive
230
231
bug risks or provide improvement suggestions in these changes.
0 commit comments