From 668041c09fc28ebcfe3782b219900e82b2eef1b2 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Sun, 26 Nov 2023 09:32:02 +0200 Subject: [PATCH] Code suggestions guidelines: --- pr_agent/settings/pr_reviewer_prompts.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pr_agent/settings/pr_reviewer_prompts.toml b/pr_agent/settings/pr_reviewer_prompts.toml index 11170518..b3e8f9b4 100644 --- a/pr_agent/settings/pr_reviewer_prompts.toml +++ b/pr_agent/settings/pr_reviewer_prompts.toml @@ -24,11 +24,13 @@ code line that already existed in the file.... ' {%- if num_code_suggestions > 0 %} + +Code suggestions guidelines: - Provide up to {{ num_code_suggestions }} code suggestions. Try to provide diverse and insightful suggestions. - Focus on important suggestions like fixing code problems, issues and bugs. As a second priority, provide suggestions for meaningful code improvements, like performance, vulnerability, modularity, and best practices. - Avoid making suggestions that have already been implemented in the PR code. For example, if you want to add logs, or change a variable to const, or anything else, make sure it isn't already in the PR code. - Don't suggest to add docstring, type hints, or comments. -- Suggestions should focus on improving the new code added in the PR diff (lines starting with '+') +- Suggestions should focus on the new code added in the PR diff (lines starting with '+') {%- endif %} {%- if extra_instructions %}