From 64481e2d84a98dc928ed12f6539ce1a5bbd0482b Mon Sep 17 00:00:00 2001 From: mrT23 Date: Wed, 9 Aug 2023 14:01:48 +0300 Subject: [PATCH] block scalar --- pr_agent/settings/pr_reviewer_prompts.toml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pr_agent/settings/pr_reviewer_prompts.toml b/pr_agent/settings/pr_reviewer_prompts.toml index a4ae0451..e649bf2d 100644 --- a/pr_agent/settings/pr_reviewer_prompts.toml +++ b/pr_agent/settings/pr_reviewer_prompts.toml @@ -116,17 +116,20 @@ PR Feedback: General PR suggestions: ... {%- if num_code_suggestions > 0 %} Code feedback: - - relevant file: directory/xxx.py + - relevant file: |- + directory/xxx.py suggestion: xxx [important] - relevant line: 'xxx' - - ... + relevant line: |- + xxx + ... {%- endif %} {%- if require_security %} Security concerns: No {%- endif %} ``` -Make sure to output a valid YAML. Don't repeat the prompt in the answer, and avoid outputting the 'type' and 'description' fields. +Make sure to output a valid YAML. Use multi-line block scalar ('|') if needed. +Don't repeat the prompt in the answer, and avoid outputting the 'type' and 'description' fields. """ user="""PR Info: