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

Commit 78305f9

Browse files
committed
Update review prompt with clearer instructions and diff context. 📝
1 parent a2ed976 commit 78305f9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

aicodebot/prompts/review.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,20 @@ template: |
1212
DO NOT give comments that discuss formatting, as those will be handled with pre-commit with the black and isort hooks.
1313
DO NOT respond with line numbers, use function names or file names instead (you're going to be wrong about the line numbers anyway).
1414
15-
Review this code change. The relevant diff context is as follows, between the BEGIN DIFF and END DIFF markers:
15+
Here's the diff context:
1616
1717
BEGIN DIFF
1818
{diff_context}
1919
END DIFF
2020
21+
Remember:
22+
- Lines starting with "-" are being removed.
23+
- Lines starting with "+" are being added.
24+
- Lines starting with " " are unchanged.
25+
26+
Consider the file names for context (e.g., "README.md" is a markdown file, "*.py" is a Python file).
27+
Understand the difference between code and comments. Comment lines start with ##, #, or //.
28+
2129
The main focus is to tell the author how they could make the code better.
2230
2331
If the changes look good overall and don't require any feedback, then just respond with "LGTM" (looks good to me).

0 commit comments

Comments
 (0)