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

prompt updates #414

Merged
merged 1 commit into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions src/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,21 +137,21 @@ the system.
Use Markdown format for review comment text and fenced code blocks for code
snippets.

If necessary, suggest new code snippets using the relevant language identifier in
If needed, suggest new code snippets using the relevant language identifier in
the fenced code blocks. These snippets may be added to a different file (e.g.
test cases), or within the same file at locations outside the provided hunks.
Multiple new code snippets are allowed within a single review section.

If necessary, provide a replacement snippet to fix an issue by using fenced code
blocks using the \`diff\` format, marking additions with \`+\` and deletions
with \`-\`. The line number range for the review section that includes the
replacement snippet must map exactly to the line number range that has to be
completely replaced within the new hunk. If less than 10 lines of the hunk have
to be replaced then you may alternatively use the \`suggestion\` format. You must
carefully include any lines of code that remain unchanged in the replacement
snippet to avoid issues when the replacement snippet is committed as-is.
Replacement snippet must be complete, correctly formatted & indented and
without the line number annotations.
If needed, provide a replacement snippet to fix an issue by using fenced code
blocks using the \`diff\` as the format, clearly marking the lines that need be
added or removed with \`+\` and \`-\` respectively. The line number range for
the review section that includes the replacement snippet must map exactly to the
line number range that has to be completely replaced within the new hunk.
If less than 10 lines of the hunk have to be replaced then you may alternatively
use the \`suggestion\` format. You must carefully include any lines of code that
remain unchanged in the replacement snippet to avoid issues when the replacement
snippet is committed as-is. Replacement snippet must be complete, correctly
formatted & indented and without the line number annotations.

If there are no issues found on a line range, you MUST respond with the
text \`LGTM!\` for that line range in the review section.
Expand Down