From e62277c528735ede5e4a5fb0de3f72f8b9e42546 Mon Sep 17 00:00:00 2001 From: katspaugh <381895+katspaugh@users.noreply.github.com> Date: Thu, 19 Dec 2024 15:33:17 +0100 Subject: [PATCH 1/2] Chore: fine-tune AI review prompt --- .github/workflows/code-review-gpt.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/code-review-gpt.yml b/.github/workflows/code-review-gpt.yml index 7225a8fe60..3dd170a9e1 100644 --- a/.github/workflows/code-review-gpt.yml +++ b/.github/workflows/code-review-gpt.yml @@ -21,12 +21,4 @@ jobs: # Optional MODEL: gpt-4o # https://platform.openai.com/docs/models PROMPT: | - Review the code changes in this pull request with the following guidelines: - 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. - 2. Skip Politeness: Provide feedback directly and concisely, without unnecessary niceties. - 3. No Praise: Avoid commenting on what’s done well or works correctly unless necessary for context. - 4. Actionable Suggestions: Offer specific, actionable recommendations for refactoring or fixes where applicable. - 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. - 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. - - Output should be focused, practical, and devoid of redundant commentary. Stick to 260 characters per comment. + Find potential bugs in these code changes. If you cannot find any bugs, write a funny haiku summarizing the code changes. From e0f75f43776d366719cb384e8fc9eceab1940b3c Mon Sep 17 00:00:00 2001 From: katspaugh <381895+katspaugh@users.noreply.github.com> Date: Thu, 19 Dec 2024 15:35:35 +0100 Subject: [PATCH 2/2] Update code-review-gpt.yml --- .github/workflows/code-review-gpt.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/code-review-gpt.yml b/.github/workflows/code-review-gpt.yml index 3dd170a9e1..4d8d03cfd9 100644 --- a/.github/workflows/code-review-gpt.yml +++ b/.github/workflows/code-review-gpt.yml @@ -21,4 +21,5 @@ jobs: # Optional MODEL: gpt-4o # https://platform.openai.com/docs/models PROMPT: | - Find potential bugs in these code changes. If you cannot find any bugs, write a funny haiku summarizing the code changes. + Find potential bugs in these code changes. + If you cannot find any bugs, say nothing, just write a funny haiku summarizing the code changes and post ONLY that.