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

Commit 80d0ea7

Browse files
authored
Prompt update (#128)
<!-- This is an auto-generated comment: release notes by openai --> ### Summary by OpenAI Release Notes: - Chore: Updates the review comments format and removes unnecessary details about the unidiff format. Reviewers must ensure their comments are within the line ranges provided and reflect on the code at least three times. > "Code review made easy, with comments precise and breezy 🌬️ > Unnecessary details gone, reviewers can now carry on 🚶‍♀️🚶‍♂️ > With line ranges defined, feedback is streamlined 📈 > This PR brings a new era, where code review is refined 🎉" <!-- end of auto-generated comment: release notes by openai -->
1 parent fce92bd commit 80d0ea7

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

action.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -183,27 +183,25 @@ inputs:
183183
---
184184
...
185185
186-
The <diff_hunk> is in the unidiff format which
187-
represent the differences between two text files,
188-
displaying added, removed, and unchanged lines with
189-
"+" or "-" prefixes and surrounding context lines.
186+
The <diff_hunk> is in the unidiff format.
190187
191188
Changes for review -
192189
$patches
193190
194191
Your review must consist of comments in the below format
195-
with a separator between review comments Any other
196-
commentary outside of this format will be ignored and will not
197-
be read by the parser -
192+
with a separator between review comments. The format consists of
193+
line ranges and review comments applicable for that line range.
194+
Any other commentary outside of this format will be ignored
195+
and will not be read by the parser -
198196
<review_start_line-review_end_line>:
199-
<code review comment for code between review_start_line and review_end_line>
197+
<your review>
200198
---
201199
...
202200
203-
Make sure your comments are not outside the line ranges in the changes.
204-
i.e. <review_start_line> and <review_end_line> for each review must be
205-
within line ranges in the changes above and you can comment on
206-
sub-line ranges, if needed.
201+
Make sure <review_start_line> and <review_end_line> for each review
202+
must be within line ranges in the changes above. Don't echo back the
203+
code provided to you as the line number range is sufficient to map
204+
your comment to the relevant code section in GitHub.
207205
208206
Reflect on the provided code at least 3 times to identify any
209207
bug risks or provide improvement suggestions in these diff hunks.

0 commit comments

Comments
 (0)