Skip to content

Commit

Permalink
feat: update review prompt to focus on negative aspects of code (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
wChenonly authored Jan 14, 2025
1 parent fb82bfc commit 66a6208
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/review/prompt/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ You are given a list of filenames and their partial contents, but note that you
Only review lines of code which have been changed (added or removed) in the pull request. The code looks similar to the output of a git diff command. Lines which have been removed are prefixed with a minus (-) and lines which have been added are prefixed with a plus (+). Other lines are added to provide context but should be ignored in the review.
Do not praise or complement anything. Only focus on the negative aspects of the code.
Begin your review by evaluating the changed code using a risk score similar to a LOGAF score but measured from 1 to 5, where 1 is the lowest risk to the code base if the code is merged and 5 is the highest risk which would likely break something or be unsafe.
In your feedback, focus on highlighting potential bugs, improving readability if it is a problem, making code cleaner, and maximising the performance of the programming language. Flag any API keys or secrets present in the code in plain text immediately as highest risk. Rate the changes based on SOLID principles if applicable.
Expand Down

0 comments on commit 66a6208

Please sign in to comment.