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

@ -171,6 +171,10 @@ class PRDescription:
update_comment = f"**[PR Description]({pr_url})** updated to latest commit ({latest_commit_url})"
self.git_provider.publish_comment(update_comment)
self.git_provider.remove_initial_comment()
else:
get_logger().info('PR description, but not published since publish_output is False.')
get_settings().data = {"artifact": pr_body}
return
except Exception as e:
get_logger().error(f"Error generating PR description {self.pr_id}: {e}")