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

Commit

Permalink
update scoring prompt (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
harjotgill authored Apr 20, 2023
1 parent 25494e6 commit bf2661b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 13 deletions.
24 changes: 17 additions & 7 deletions dist/index.js

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

22 changes: 16 additions & 6 deletions src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,23 @@ export class Prompts {
render_summarize_file_diff(inputs: Inputs): string {
const prompt = `${this.summarize_file_diff}
Below the summary, I would also like you to classify the
complexity of the diff as \`COMPLEX\` or \`SIMPLE\` based
on whether the diff is a simple change that looks good as it
is or a complex change that needs thorough review.
Below the summary, I would also like you to classify the complexity
of the diff as \`COMPLEX\` or \`SIMPLE\` based on the following
criteria:
Use the following format to classify the complexity of the
diff and add no additional text:
- If the diff introduces new functionality, modifies existing logic
significantly, or has potential security implications,
classify it as \`COMPLEX\`.
- If the diff only contains minor changes, such as fixing typos,
formatting, or updating documentation, classify it as \`SIMPLE\`.
Please evaluate the diff thoroughly and take into account factors
such as the number of lines changed, the potential impact on the
overall system, and the likelihood of introducing new bugs or
security vulnerabilities.
Use the following format to classify the complexity of the diff
and add no additional text:
[COMPLEXITY]: <COMPLEX or SIMPLE>
`

Expand Down

0 comments on commit bf2661b

Please sign in to comment.