From 4b351cfe38c2b67fb73c2ee1650385604800b9e6 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Thu, 11 Jul 2024 18:24:40 +0300 Subject: [PATCH] AzureDevopsProvider --- pr_agent/tools/pr_code_suggestions.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pr_agent/tools/pr_code_suggestions.py b/pr_agent/tools/pr_code_suggestions.py index 10fc47b4..1f591d1a 100644 --- a/pr_agent/tools/pr_code_suggestions.py +++ b/pr_agent/tools/pr_code_suggestions.py @@ -177,8 +177,11 @@ class PRCodeSuggestions: final_update_message=True, max_previous_comments=4, progress_response=None): - if isinstance(self.git_provider,AzureDevopsProvider): - self.git_provider.publish_comment(pr_comment) + if isinstance(self.git_provider, AzureDevopsProvider): # get_latest_commit_url is not supported yet + if progress_response: + self.git_provider.edit_comment(progress_response, pr_comment) + else: + self.git_provider.publish_comment(pr_comment) return history_header = f"#### Previous suggestions\n"