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

Commit bf2661b

Browse files
authored
update scoring prompt (#213)
1 parent 25494e6 commit bf2661b

File tree

2 files changed

+33
-13
lines changed

2 files changed

+33
-13
lines changed

dist/index.js

Lines changed: 17 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/options.ts

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,23 @@ export class Prompts {
2929
render_summarize_file_diff(inputs: Inputs): string {
3030
const prompt = `${this.summarize_file_diff}
3131
32-
Below the summary, I would also like you to classify the
33-
complexity of the diff as \`COMPLEX\` or \`SIMPLE\` based
34-
on whether the diff is a simple change that looks good as it
35-
is or a complex change that needs thorough review.
32+
Below the summary, I would also like you to classify the complexity
33+
of the diff as \`COMPLEX\` or \`SIMPLE\` based on the following
34+
criteria:
3635
37-
Use the following format to classify the complexity of the
38-
diff and add no additional text:
36+
- If the diff introduces new functionality, modifies existing logic
37+
significantly, or has potential security implications,
38+
classify it as \`COMPLEX\`.
39+
- If the diff only contains minor changes, such as fixing typos,
40+
formatting, or updating documentation, classify it as \`SIMPLE\`.
41+
42+
Please evaluate the diff thoroughly and take into account factors
43+
such as the number of lines changed, the potential impact on the
44+
overall system, and the likelihood of introducing new bugs or
45+
security vulnerabilities.
46+
47+
Use the following format to classify the complexity of the diff
48+
and add no additional text:
3949
[COMPLEXITY]: <COMPLEX or SIMPLE>
4050
`
4151

0 commit comments

Comments
 (0)