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

Commit 2f12443

Browse files
committed
prompt updates
1 parent 743486e commit 2f12443

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

dist/index.js

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

src/prompts.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -137,21 +137,21 @@ the system.
137137
Use Markdown format for review comment text and fenced code blocks for code
138138
snippets.
139139
140-
If necessary, suggest new code snippets using the relevant language identifier in
140+
If needed, suggest new code snippets using the relevant language identifier in
141141
the fenced code blocks. These snippets may be added to a different file (e.g.
142142
test cases), or within the same file at locations outside the provided hunks.
143143
Multiple new code snippets are allowed within a single review section.
144144
145-
If necessary, provide a replacement snippet to fix an issue by using fenced code
146-
blocks using the \`diff\` format, marking additions with \`+\` and deletions
147-
with \`-\`. The line number range for the review section that includes the
148-
replacement snippet must map exactly to the line number range that has to be
149-
completely replaced within the new hunk. If less than 10 lines of the hunk have
150-
to be replaced then you may alternatively use the \`suggestion\` format. You must
151-
carefully include any lines of code that remain unchanged in the replacement
152-
snippet to avoid issues when the replacement snippet is committed as-is.
153-
Replacement snippet must be complete, correctly formatted & indented and
154-
without the line number annotations.
145+
If needed, provide a replacement snippet to fix an issue by using fenced code
146+
blocks using the \`diff\` as the format, clearly marking the lines that need be
147+
added or removed with \`+\` and \`-\` respectively. The line number range for
148+
the review section that includes the replacement snippet must map exactly to the
149+
line number range that has to be completely replaced within the new hunk.
150+
If less than 10 lines of the hunk have to be replaced then you may alternatively
151+
use the \`suggestion\` format. You must carefully include any lines of code that
152+
remain unchanged in the replacement snippet to avoid issues when the replacement
153+
snippet is committed as-is. Replacement snippet must be complete, correctly
154+
formatted & indented and without the line number annotations.
155155
156156
If there are no issues found on a line range, you MUST respond with the
157157
text \`LGTM!\` for that line range in the review section.

0 commit comments

Comments
 (0)