try to prevent suggesting to comment the code

This commit is contained in:
Ville Saukkonen 2023-04-22 17:12:43 +03:00
parent dbf427f89f
commit 3413a8e8a0
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored

@ -132,7 +132,7 @@ function getBaseAndHeadShas(owner, repo, pull_number) {
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 the code.
- NEVER suggest adding a comment explaining the code.
- Provide comments and suggestions ONLY if there is something to improve, otherwise return an empty array.
- Write the comment in GitHub Markdown format.
- Use the given description only for the overall context and only comment the code.

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

@ -113,7 +113,7 @@ async function getBaseAndHeadShas(
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 the code.
- NEVER suggest adding a comment explaining the code.
- Provide comments and suggestions ONLY if there is something to improve, otherwise return an empty array.
- Write the comment in GitHub Markdown format.
- Use the given description only for the overall context and only comment the code.