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
body: ress.length ? "Code review by ChatGPT" : "LGTM 👍",
150523
150524
event: 'COMMENT',
150524
150525
commit_id: commits[commits.length - 1].sha,
150525
150526
comments: ress,
@@ -150588,15 +150589,23 @@ class Chat {
150588
150589
const answerLanguage = process.env.LANGUAGE
150589
150590
? `Answer me in ${process.env.LANGUAGE},`
150590
150591
: '';
150591
-
const prompt = process.env.PROMPT ||
150592
-
'Below is a code patch, please help me do a brief code review on it. Any bug risks and/or improvement suggestions are welcome:';
150593
-
return `${prompt}, ${answerLanguage}:
150594
-
${patch}
150592
+
const userPrompt = process.env.PROMPT || 'Please review the following code patch. Focus on potential bugs, risks, and improvement suggestions.';
150593
+
const jsonFormatRequirement = '\nProvide your feedback in a strict JSON format with the following structure:\n' +
150594
+
'{\n' +
150595
+
' "lgtm": boolean, // true if the code looks good to merge, false if there are concerns\n' +
150596
+
' "review_comment": string // Your detailed review comments. You can use markdown syntax in this string, but the overall response must be a valid JSON\n' +
0 commit comments