From 6062c99c47fe3f4242571d4468d35e02cac53489 Mon Sep 17 00:00:00 2001 From: joosomi Date: Fri, 9 May 2025 21:20:04 +0900 Subject: [PATCH 1/2] fix: avoid duplicate header for list types to prevent markdown break --- pr_agent/tools/pr_description.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pr_agent/tools/pr_description.py b/pr_agent/tools/pr_description.py index 0a4f7c59..6c021c3a 100644 --- a/pr_agent/tools/pr_description.py +++ b/pr_agent/tools/pr_description.py @@ -507,10 +507,10 @@ class PRDescription: ai_type = self.data.get('type') if ai_type and not re.search(r'', body): if isinstance(ai_type, list): - pr_types = [f"{ai_header}{t}" for t in ai_type] - pr_type = ','.join(pr_types) + pr_type = ', '.join(ai_type) else: - pr_type = f"{ai_header}{ai_type}" + pr_type = ai_type + pr_type = f"{ai_header}{pr_type}" body = body.replace('pr_agent:type', pr_type) ai_summary = self.data.get('description') From 57eaba0e751c2bf82cc1e6ab9018bd489d7c82e0 Mon Sep 17 00:00:00 2001 From: joosomi Date: Fri, 9 May 2025 21:33:42 +0900 Subject: [PATCH 2/2] fix: ensure string conversion for list elements --- 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 6c021c3a..2e6e3a6a 100644 --- a/pr_agent/tools/pr_description.py +++ b/pr_agent/tools/pr_description.py @@ -507,7 +507,7 @@ class PRDescription: ai_type = self.data.get('type') if ai_type and not re.search(r'', body): if isinstance(ai_type, list): - pr_type = ', '.join(ai_type) + pr_type = ', '.join(str(t) for t in ai_type) else: pr_type = ai_type pr_type = f"{ai_header}{pr_type}"