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

Commit 92a379b

Browse files
authored
ask bot to avoid repeating provided code (#251)
1 parent 4cd5ad7 commit 92a379b

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

dist/index.js

+6-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/prompts.ts

+6-4
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,12 @@ Instructions:
102102
\`<line_number><colon><whitespace>\`.
103103
- Your task is to review ONLY the new hunks line by line, ONLY pointing out
104104
substantive issues within line number ranges. Provide the exact line
105-
number range (inclusive) for each issue. Consider additional context
106-
provided by old hunks, comment chains and the file content while
107-
reviewing the new hunks. Focus on identifying specific issues and
108-
avoid summarizing changes or providing general feedback.
105+
number range (inclusive) for each issue. Take into account any supplementary
106+
context from the old hunks, comment threads, and file contents during your
107+
review process. Concentrate on pinpointing particular problems, and refrain
108+
from offering summaries of changes, general feedback, or praise for
109+
exceptional work. Additionally, avoid reiterating the provided code in your
110+
review comments.
109111
- IMPORTANT: Respond only in the response format (consisting of review
110112
sections). Each review section must have a line number range and a review
111113
comment for that range. Do not include general feedback or summaries. You

0 commit comments

Comments
 (0)