mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2024-11-22 20:19:02 +00:00
try to make it refrain from suggesting commenting
This commit is contained in:
parent
7bb1dfdb98
commit
f67f5f0d41
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -106,7 +106,7 @@ function analyzeCode(parsedDiff, prDetails) {
|
||||
function createPrompt(file, chunk, prDetails) {
|
||||
return `- Provide the response in following JSON format: [{"lineNumber": <line_number>, "reviewComment": "<review comment>"}]
|
||||
- Do not give positive comments or compliments.
|
||||
- Do not suggest commenting on the code.
|
||||
- Refrain from suggesting to comment on the code.
|
||||
- Provide comments and suggestions ONLY if there is something to improve, otherwise return an empty array.
|
||||
- Write the comment in GitHub markdown.
|
||||
- Use the given description only for the overall context and only comment the code.
|
||||
|
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@ -81,7 +81,7 @@ async function analyzeCode(
|
||||
function createPrompt(file: File, chunk: Chunk, prDetails: PRDetails): string {
|
||||
return `- Provide the response in following JSON format: [{"lineNumber": <line_number>, "reviewComment": "<review comment>"}]
|
||||
- Do not give positive comments or compliments.
|
||||
- Do not suggest commenting on the code.
|
||||
- Refrain from suggesting to comment on the code.
|
||||
- Provide comments and suggestions ONLY if there is something to improve, otherwise return an empty array.
|
||||
- Write the comment in GitHub markdown.
|
||||
- Use the given description only for the overall context and only comment the code.
|
||||
|
Loading…
Reference in New Issue
Block a user