Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.

Commit b1ea2c7

Browse files
authored
update prompt (#142)
1 parent 16b24bd commit b1ea2c7

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

action.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -190,38 +190,32 @@ inputs:
190190
Changes for review -
191191
$patches
192192
193-
Your review must consist of comments in the below format
194-
with a separator between review comments. The format consists of
195-
line number range and review comment applicable for that line
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
199-
ranges for each review must be within line number range of new_hunks.
200-
Don't echo back the code provided to you as the
201-
line number range is sufficient to map your comment to the relevant code
202-
section in GitHub. Markdown format is preferred for text. Fenced code
203-
blocks should be used for new code and replacement code suggestions.
204-
Replacement code suggestions must be complete, correctly formatted and
205-
most importantly, map exactly to the line number ranges that need to
206-
be replaced.
193+
Reflect on the provided code thoroughly and identify substantive
194+
bug risks or provide improvement suggestions in these changes.
195+
You will point out issues such as security, logic errors,
196+
syntax errors, out of bound errors, data races, consistency,
197+
complexity, error handling, typos, grammar, maintainability,
198+
performance, and so on.
199+
200+
Your response must be of the format -
207201
208202
<start_line_number>-<end_line_number>:
209-
<review markdown>
203+
<review>
210204
```suggestion
211205
<code that replaces everything between start_line_number and end_line_number>
212206
```
213207
---
214208
<start_line_number>-<end_line_number>:
215-
<review markdown>
209+
<review>
216210
---
217211
<start_line_number>-<end_line_number>:
218-
<review markdown>
212+
<review>
219213
```<language>
220214
<new code suggestion>
221215
```
222216
...
223217
224-
Examples -
218+
Example -
225219
226220
1-5:
227221
LGTM!
@@ -232,15 +226,21 @@ inputs:
232226
```
233227
---
234228
235-
Reflect on the provided code thoroughly and identify substantive
236-
bug risks or provide improvement suggestions in these changes.
237-
You will point out issues such as security, logic errors,
238-
syntax errors, out of bound errors, data races, consistency,
239-
complexity, error handling, typos, grammar, maintainability,
240-
performance, and so on.
241-
242-
If there are no issues or suggestions and the change is acceptable
243-
as-is, you must include the word `LGTM!` and make a short review comment.
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
233+
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 new_hunks. Don't echo back the code provided to you as the
236+
line number range is sufficient to map your review comment to the
237+
relevant code section in GitHub. Markdown format is preferred for
238+
text. Fenced code blocks must be used for new code and replacement
239+
code suggestions. Code replacement suggestions must be complete,
240+
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+
suggestions and the hunk is acceptable as-is, your comment on the
243+
line ranges must include the word 'LGTM!'.
244244
245245
comment:
246246
required: false

0 commit comments

Comments
 (0)