From 9b97073174fc9dd98a3807f0b6204f0522623232 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Mon, 11 Dec 2023 12:00:44 +0200 Subject: [PATCH 1/2] s --- pr_agent/tools/pr_description.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pr_agent/tools/pr_description.py b/pr_agent/tools/pr_description.py index 64acaab3a..bd623d5a6 100644 --- a/pr_agent/tools/pr_description.py +++ b/pr_agent/tools/pr_description.py @@ -315,7 +315,6 @@ def process_pr_files_prediction(self, pr_body, value): if not self.git_provider.is_supported("gfm_markdown"): get_logger().info(f"Disabling semantic files types for {self.pr_id} since gfm_markdown is not supported") return pr_body - try: pr_body += "" header = f"Relevant files" From 480e2ee6783540cdb7a52b7bfab3d5d03731438c Mon Sep 17 00:00:00 2001 From: mrT23 Date: Mon, 11 Dec 2023 15:55:04 +0200 Subject: [PATCH 2/2] feat: Improve PR description formatting in pr_description.py --- pr_agent/tools/pr_description.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr_agent/tools/pr_description.py b/pr_agent/tools/pr_description.py index bd623d5a6..34626fa3d 100644 --- a/pr_agent/tools/pr_description.py +++ b/pr_agent/tools/pr_description.py @@ -290,7 +290,7 @@ def _prepare_pr_answer(self) -> Tuple[str, str]: value = ', '.join(v for v in value) pr_body += f"{value}\n" if idx < len(self.data) - 1: - pr_body += "\n___\n" + pr_body += "\n\n___\n\n" if get_settings().config.verbosity_level >= 2: get_logger().info(f"title:\n{title}\n{pr_body}")