mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2024-11-23 04:29:03 +00:00
try to make it not to ask commenting the code
This commit is contained in:
parent
b231c7beb1
commit
903cfb745e
4
dist/index.js
vendored
4
dist/index.js
vendored
@ -132,9 +132,9 @@ function getBaseAndHeadShas(owner, repo, pull_number) {
|
|||||||
function createPrompt(file, chunk, prDetails) {
|
function createPrompt(file, chunk, prDetails) {
|
||||||
return `- Provide the response in following JSON format: [{"lineNumber": <line_number>, "reviewComment": "<review comment>"}]
|
return `- Provide the response in following JSON format: [{"lineNumber": <line_number>, "reviewComment": "<review comment>"}]
|
||||||
- Do not give positive comments or compliments.
|
- Do not give positive comments or compliments.
|
||||||
- Do not recommend adding comments to the code.
|
- Do not suggest commenting the code.
|
||||||
- Provide comments and suggestions ONLY if there is something to improve, otherwise return an empty array.
|
- Provide comments and suggestions ONLY if there is something to improve, otherwise return an empty array.
|
||||||
- Write the comment in GitHub markdown.
|
- Write the comment in GitHub Markdown format.
|
||||||
- Use the given description only for the overall context and only comment the code.
|
- Use the given description only for the overall context and only comment the code.
|
||||||
|
|
||||||
Review the following code diff in the file "${file.to}" and take the pull request title and description into account when writing the response.
|
Review the following code diff in the file "${file.to}" and take the pull request title and description into account when writing the response.
|
||||||
|
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@ -113,9 +113,9 @@ async function getBaseAndHeadShas(
|
|||||||
function createPrompt(file: File, chunk: Chunk, prDetails: PRDetails): string {
|
function createPrompt(file: File, chunk: Chunk, prDetails: PRDetails): string {
|
||||||
return `- Provide the response in following JSON format: [{"lineNumber": <line_number>, "reviewComment": "<review comment>"}]
|
return `- Provide the response in following JSON format: [{"lineNumber": <line_number>, "reviewComment": "<review comment>"}]
|
||||||
- Do not give positive comments or compliments.
|
- Do not give positive comments or compliments.
|
||||||
- Do not recommend adding comments to the code.
|
- Do not suggest commenting the code.
|
||||||
- Provide comments and suggestions ONLY if there is something to improve, otherwise return an empty array.
|
- Provide comments and suggestions ONLY if there is something to improve, otherwise return an empty array.
|
||||||
- Write the comment in GitHub markdown.
|
- Write the comment in GitHub Markdown format.
|
||||||
- Use the given description only for the overall context and only comment the code.
|
- Use the given description only for the overall context and only comment the code.
|
||||||
|
|
||||||
Review the following code diff in the file "${
|
Review the following code diff in the file "${
|
||||||
|
Loading…
Reference in New Issue
Block a user