From 97bfee47a3f8bdbd51a5e683d8bc6acdfc499669 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Wed, 19 Jul 2023 11:34:55 +0300 Subject: [PATCH] minor fixes --- pr_agent/algo/utils.py | 6 ++++-- pr_agent/settings/pr_reviewer_prompts.toml | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pr_agent/algo/utils.py b/pr_agent/algo/utils.py index 9fe7a3a2..ece59448 100644 --- a/pr_agent/algo/utils.py +++ b/pr_agent/algo/utils.py @@ -30,7 +30,8 @@ def convert_to_markdown(output_data: dict) -> str: elif isinstance(value, list): if key.lower() == 'code suggestions': markdown_text += "\n" # just looks nicer with additional line breaks - emoji = emojis.get(key, "‣") # Use a dash if no emoji is found for the key + # emoji = emojis.get(key, "‣") # Use a dash if no emoji is found for the key + emoji = "" markdown_text += f"- {emoji} **{key}:**\n\n" for item in value: if isinstance(item, dict) and key.lower() == 'code suggestions': @@ -38,7 +39,8 @@ def convert_to_markdown(output_data: dict) -> str: elif item: markdown_text += f" - {item}\n" elif value != 'n/a': - emoji = emojis.get(key, "‣") # Use a dash if no emoji is found for the key + # emoji = emojis.get(key, "‣") # Use a dash if no emoji is found for the key + emoji = "" markdown_text += f"- {emoji} **{key}:** {value}\n" return markdown_text diff --git a/pr_agent/settings/pr_reviewer_prompts.toml b/pr_agent/settings/pr_reviewer_prompts.toml index 51a873c4..ae484357 100644 --- a/pr_agent/settings/pr_reviewer_prompts.toml +++ b/pr_agent/settings/pr_reviewer_prompts.toml @@ -103,8 +103,8 @@ Example output: ... ] {%- endif %} -{%- if require_security %}, - "Security concerns": "No, because ..." +{%- if require_security %} + "Security concerns": "No, because ..." {%- endif %} } }