From 6c131b8406f02a1c1af1fecc0e8e6cf89f166448 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Mon, 23 Dec 2024 19:35:52 +0200 Subject: [PATCH] feat: add PR link support in changelog updates --- pr_agent/tools/pr_update_changelog.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pr_agent/tools/pr_update_changelog.py b/pr_agent/tools/pr_update_changelog.py index 10547534b..fadf28f19 100644 --- a/pr_agent/tools/pr_update_changelog.py +++ b/pr_agent/tools/pr_update_changelog.py @@ -113,6 +113,8 @@ async def _get_prediction(self, model: str): # post-process the response response = response.strip() + if not response: + return "" if response.startswith("```"): response_lines = response.splitlines() response_lines = response_lines[1:]