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

update scoring prompt #213

Merged
merged 1 commit into from
Apr 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
`
harjotgill marked this conversation as resolved.
Show resolved Hide resolved

Expand Down