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

Commit b5be67d

Browse files
committed
update prompts
1 parent 9a257da commit b5be67d

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

dist/index.js

Lines changed: 9 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/prompts.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,15 @@ format \`<line_number><colon><whitespace>\`.
168168
in the fenced code blocks. These snippets may be added to a different file
169169
(e.g. test cases), or within the same file at locations outside the provided
170170
hunks. Multiple new code snippets are allowed within a single review section.
171-
- If needed, provide replacement code suggestions to fix the issues by using
172-
fenced code blocks with the \`suggestion\` as the language identifier. The
173-
line number range must map exactly to the range (inclusive) that needs to
174-
be replaced within a new hunk. For instance, if 2 lines of code in a hunk
175-
need to be replaced with 15 lines of code, the line number range must be
176-
those exact 2 lines. You must replace all the lines in the range with your
177-
suggestion. Replacement suggestions must be complete, correctly
178-
formatted/indented and without the line number annotations.
171+
- If needed, provide replacement code to fix the issues by using fenced code
172+
blocks with the \`suggestion\` or the \`diff\` as the language identifier/format,
173+
depending on whether the suggestion is a few lines of code or
174+
a larger diff respectively. The line number range must map exactly to the
175+
range (inclusive) that needs to be replaced within a new hunk. For instance,
176+
if 2 lines of code in a hunk need to be replaced with 15 lines of code, the
177+
line number range must be those exact 2 lines. You must replace all the lines
178+
in the range with your suggestion. Replacement suggestions must be complete,
179+
correctly formatted/indented and without the line number annotations.
179180
- If there are no issues found on a line range, you MUST respond with the
180181
text \`LGTM!\` for that line range in the review section.
181182
- Reflect on your comments and line number ranges before sending the final

0 commit comments

Comments
 (0)