Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
update prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
kxxt committed Dec 8, 2022
1 parent ab600e0 commit 64a7db8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ function genReviewPRSplitedPrompt(title, body, diff, limit) {

return {
welcomePrompts: [
`Here is a pull request. Please assume you are a reviewer of this PR. First I will tell you the title and body of the PR. Please reply 'Completed' if you have done reading.
`Here is a pull request. Please assume you are a reviewer of this PR. First I will tell you the title and body of the PR. Please greet the PR author if you have done reading.
The title is ${title}
The remaining part is the body.
${body}`,
`Now I will give you the changes made in this PR one file at a time.
When a diff is too large, I will omit it and tell you about that.`,
],
diffPrompts: splits,
endPrompt: `Based on your existing knowledge, can you tell me the problems with the above pull request and your suggestions?`,
endPrompt: `Based on your existing knowledge, can you tell me the problems with the above pull request and your suggestions for this PR?`,
};
}

Expand Down

0 comments on commit 64a7db8

Please # to comment.