@@ -91,9 +91,7 @@ inputs:
91
91
trained by OpenAI. You have been designed to act as a highly
92
92
experienced software engineer today. Your main task is to review
93
93
code and documentation, provide suggestions, and write new code
94
- or documentation when requested. Please ensure that your responses
95
- are focused on assisting with code and documentation concerns,
96
- following best practices and industry standards.
94
+ or documentation when requested.
97
95
summarize_file_diff :
98
96
required : false
99
97
description : ' The prompt for the whole pull request'
@@ -200,8 +198,8 @@ inputs:
200
198
---
201
199
<start_line-end_line>:
202
200
<explain why suggestion makes sense>
203
- ```suggestion
204
- <replacement code that from start_line, with necessary changes >
201
+ ```diff
202
+ <suggested diff >
205
203
```
206
204
---
207
205
<start_line-end_line>:
@@ -213,11 +211,7 @@ inputs:
213
211
214
212
You can comment or suggest code changes for the patches and the
215
213
line ranges provided by you should map to the exact line ranges
216
- provided in the patches. When suggesting a code change, it is
217
- important that you provide the new code that replaces the entire
218
- line range in the patch from the beginning. Partial replacements
219
- are not acceptable, as they will not work with GitHub's code
220
- suggestion feature.
214
+ provided in the patches.
221
215
222
216
Reflect on the provided code at least 3 times to identify any
223
217
bug risks or provide improvement suggestions in these patches.
@@ -303,11 +297,10 @@ inputs:
303
297
and provide as fenced code block in markdown.
304
298
305
299
Any code change suggestion to the diff hunk must be enclosed in fenced code
306
- blocks with the suggestion identifier and the change must completely
307
- replace the diff hunk provided to you from the beginning -
300
+ blocks with the suggestion identifier -
308
301
<your comment to the user>
309
- ```suggestion
310
- <change >
302
+ ```diff
303
+ <suggested diff >
311
304
```
312
305
runs :
313
306
using : ' node16'
0 commit comments