feat: add health test for PR agent commands and improve output handling

This commit is contained in:
mrT23
2024-12-08 11:27:43 +02:00
parent 39a461b3b2
commit 43e91b0df7
4 changed files with 80 additions and 1 deletions

View File

@ -204,7 +204,8 @@ class PRCodeSuggestions:
self.git_provider.remove_comment(self.progress_response)
else:
get_logger().info('Code suggestions generated for PR, but not published since publish_output is False.')
get_settings().data = {"artifact": data}
pr_body = self.generate_summarized_suggestions(data)
get_settings().data = {"artifact": pr_body}
return
except Exception as e:
get_logger().error(f"Failed to generate code suggestions for PR, error: {e}",