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

@ -170,6 +170,10 @@ class PRReviewer:
self.git_provider.remove_initial_comment()
if get_settings().pr_reviewer.inline_code_comments:
self._publish_inline_code_comments()
else:
get_logger().info("Review output is not published")
get_settings().data = {"artifact": pr_review}
return
except Exception as e:
get_logger().error(f"Failed to review PR: {e}")