Skip to content

Commit

Permalink
Merge pull request #6 from freeedcom/try-to-make-not-suggesting-comme…
Browse files Browse the repository at this point in the history
…nting-more-clear

try to make prompt for not suggesting commenting more clear
  • Loading branch information
villesau committed Mar 30, 2023
2 parents 094797a + 8f38d09 commit cc0ff7a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
- Refrain from suggesting to comment on the code.
- Do not recommend adding comments to 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.
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
- Refrain from suggesting to comment on the code.
- Do not recommend adding comments to 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.
Expand Down

0 comments on commit cc0ff7a

Please sign in to comment.