Skip to content

Commit

Permalink
try to make it not to ask commenting the code
Browse files Browse the repository at this point in the history
  • Loading branch information
villesau committed Apr 22, 2023
1 parent b231c7b commit 903cfb7
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -132,9 +132,9 @@ 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 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.
- 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.

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 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -113,9 +113,9 @@ 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 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.
- 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.
Review the following code diff in the file "${

0 comments on commit 903cfb7

Please sign in to comment.