mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-04 21:00:40 +08:00
fix: only publish empty code suggestions when configured
This commit is contained in:
@ -212,7 +212,7 @@ class PRCodeSuggestions:
|
|||||||
|
|
||||||
async def publish_no_suggestions(self):
|
async def publish_no_suggestions(self):
|
||||||
pr_body = "## PR Code Suggestions ✨\n\nNo code suggestions found for the PR."
|
pr_body = "## PR Code Suggestions ✨\n\nNo code suggestions found for the PR."
|
||||||
if get_settings().config.publish_output:
|
if get_settings().config.publish_output and get_settings().config.publish_output_no_suggestions:
|
||||||
get_logger().warning('No code suggestions found for the PR.')
|
get_logger().warning('No code suggestions found for the PR.')
|
||||||
get_logger().debug(f"PR output", artifact=pr_body)
|
get_logger().debug(f"PR output", artifact=pr_body)
|
||||||
if self.progress_response:
|
if self.progress_response:
|
||||||
|
Reference in New Issue
Block a user