mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-13 19:35:17 +00:00
remove_initial_comment
This commit is contained in:
parent
39538c5356
commit
07f507c442
1 changed files with 6 additions and 0 deletions
|
|
@ -124,6 +124,12 @@ class PRCodeSuggestions:
|
|||
get_logger().error(f"Failed to generate code suggestions for PR, error: {e}")
|
||||
if self.progress_response:
|
||||
self.progress_response.delete()
|
||||
else:
|
||||
try:
|
||||
self.git_provider.remove_initial_comment()
|
||||
self.git_provider.publish_comment(f"Failed to generate code suggestions for PR")
|
||||
except Exception as e:
|
||||
pass
|
||||
|
||||
async def _prepare_prediction(self, model: str):
|
||||
self.patches_diff = get_pr_diff(self.git_provider,
|
||||
|
|
|
|||
Loading…
Reference in a new issue