Skip to content

Commit cc0ff7a

Browse files
authored
Merge pull request #6 from freeedcom/try-to-make-not-suggesting-commenting-more-clear
try to make prompt for not suggesting commenting more clear
2 parents 094797a + 8f38d09 commit cc0ff7a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function analyzeCode(parsedDiff, prDetails) {
106106
function createPrompt(file, chunk, prDetails) {
107107
return `- Provide the response in following JSON format: [{"lineNumber": <line_number>, "reviewComment": "<review comment>"}]
108108
- Do not give positive comments or compliments.
109-
- Refrain from suggesting to comment on the code.
109+
- Do not recommend adding comments to the code.
110110
- Provide comments and suggestions ONLY if there is something to improve, otherwise return an empty array.
111111
- Write the comment in GitHub markdown.
112112
- Use the given description only for the overall context and only comment the code.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async function analyzeCode(
8181
function createPrompt(file: File, chunk: Chunk, prDetails: PRDetails): string {
8282
return `- Provide the response in following JSON format: [{"lineNumber": <line_number>, "reviewComment": "<review comment>"}]
8383
- Do not give positive comments or compliments.
84-
- Refrain from suggesting to comment on the code.
84+
- Do not recommend adding comments to the code.
8585
- Provide comments and suggestions ONLY if there is something to improve, otherwise return an empty array.
8686
- Write the comment in GitHub markdown.
8787
- Use the given description only for the overall context and only comment the code.

0 commit comments

Comments
 (0)