Skip to content

Commit 4d51ba2

Browse files
authored
Chore: fine-tune AI review prompt (#4696)
* Chore: fine-tune AI review prompt * Update code-review-gpt.yml
1 parent 011e808 commit 4d51ba2

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

.github/workflows/code-review-gpt.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,5 @@ jobs:
2121
# Optional
2222
MODEL: gpt-4o # https://platform.openai.com/docs/models
2323
PROMPT: |
24-
Review the code changes in this pull request with the following guidelines:
25-
1. Focus on Issues: Only highlight potential problems, such as logical errors, violations of best practices, or opportunities for improvement. Avoid commenting on existing code unless directly impacted by the changes.
26-
2. Skip Politeness: Provide feedback directly and concisely, without unnecessary niceties.
27-
3. No Praise: Avoid commenting on what’s done well or works correctly unless necessary for context.
28-
4. Actionable Suggestions: Offer specific, actionable recommendations for refactoring or fixes where applicable.
29-
5. Refactoring Ideas: Pay attention to the code structure and suggest improvements where necessary. Apply the DRY and SOLID principles. Prevent too complex components, inline functions, inline styles, and too much logic inside React components.
30-
6. Stay Brief: If no clear issues are identified or the concerns are minor, keep feedback minimal or state that no significant issues were found.
31-
32-
Output should be focused, practical, and devoid of redundant commentary. Stick to 260 characters per comment.
24+
Find potential bugs in these code changes.
25+
If you cannot find any bugs, say nothing, just write a funny haiku summarizing the code changes and post ONLY that.

0 commit comments

Comments
 (0)