From 54535070974e1aca4c41cfa1185fcd0366c72917 Mon Sep 17 00:00:00 2001 From: "Hussam.lawen" Date: Sun, 10 Mar 2024 17:19:27 +0200 Subject: [PATCH] small fix --- pr_agent/tools/pr_reviewer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pr_agent/tools/pr_reviewer.py b/pr_agent/tools/pr_reviewer.py index 5ea1d20f3..4a9d5ca19 100644 --- a/pr_agent/tools/pr_reviewer.py +++ b/pr_agent/tools/pr_reviewer.py @@ -110,10 +110,12 @@ async def run(self) -> None: if self.incremental.is_incremental and hasattr(self.git_provider, "file_set") and not self.git_provider.file_set: get_logger().info(f"Incremental review is enabled for {self.pr_url} but there are no new files") + previous_review_url = "" if hasattr(self.git_provider, "previous_review"): previous_review_url = self.git_provider.previous_review.html_url if get_settings().config.publish_output: - self.git_provider.publish_comment(f"Incremental Review Skipped\nNo files were changed since the [previous PR Review]({previous_review_url})", is_temporary=True) + self.git_provider.publish_comment(f"Incremental Review Skipped\n" + f"No files were changed since the [previous PR Review]({previous_review_url})", is_temporary=True) return None if get_settings().config.publish_output: