Add is_auto_command config check to conditionally publish output and update GitHub App to set this flag

This commit is contained in:
mrT23
2024-06-19 11:51:10 +03:00
parent 833bb29808
commit 9034e18772
5 changed files with 6 additions and 3 deletions

View File

@ -118,7 +118,7 @@ class PRReviewer:
f"No files were changed since the [previous PR Review]({previous_review_url})")
return None
if get_settings().config.publish_output:
if get_settings().config.publish_output and not get_settings().config.get('is_auto_command', False):
self.git_provider.publish_comment("Preparing review...", is_temporary=True)
await retry_with_fallback_models(self._prepare_prediction)