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
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.
69
+
PROMPT="Act as a senior Go and Kubernetes engineer. Review the diff and flag only true bugs, security concerns, or risky changes. Return ONLY valid JSON matching this schema:
70
+
{
71
+
\"summary\": string | null,
72
+
\"comments\": [
73
+
{
74
+
\"path\": \"relative/file.go\",
75
+
\"line\": number, # line number in the PR head
76
+
\"side\": \"RIGHT\" | \"LEFT\" (default RIGHT),
77
+
\"body\": \"Explain the issue and impact.\",
78
+
\"suggestion\": \"Optional replacement code without fences.\"
79
+
}
80
+
]
81
+
}
82
+
- Use comments array only for actionable findings. Leave it empty when there are no issues.
83
+
- Omit suggestion when not needed. When present, include only the replacement code lines.
84
+
- Set summary to a short overview or null. If there are no issues, respond with {\"summary\":\"NO_ISSUES\",\"comments\":[]}.
70
85
71
86
Code diff:
72
87
$DIFF_CONTENT"
@@ -99,19 +114,34 @@ jobs:
99
114
if echo "$RESPONSE" | jq -e '.error' > /dev/null 2>&1; then
0 commit comments