You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/ai-review.yml
+25-28Lines changed: 25 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -66,15 +66,7 @@ jobs:
66
66
DIFF_CONTENT=$(cat pr_diff.txt | jq -Rs .)
67
67
68
68
# Prepare the review prompt
69
-
PROMPT="You are an expert code reviewer. Please review the following code changes and provide:
70
-
1. A summary of the changes
71
-
2. Potential issues or bugs
72
-
3. Security concerns if any
73
-
4. Performance considerations
74
-
5. Best practices and suggestions for improvement
75
-
6. Positive aspects of the code
76
-
77
-
Focus on Go code, Kubernetes manifests, and Helm charts.
69
+
PROMPT="Act as a senior Go and Kubernetes engineer. Review the diff and point out only real bugs, security concerns, or risky changes. Keep the review concise and specific, referencing files or resources when it helps. If there is nothing actionable to flag, respond with NO_ISSUES and nothing else.
78
70
79
71
Code diff:
80
72
$DIFF_CONTENT"
@@ -101,34 +93,39 @@ jobs:
101
93
}")
102
94
103
95
# Extract the review content
104
-
REVIEW=$(echo "$RESPONSE" | jq -r '.choices[0].message.content // "Error: Unable to get AI review"')
0 commit comments