mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-17 05:15:19 +00:00
Merge pull request #1191 from AHancher2022/bugfix/fix-output-publishing-when-set-to-false
Fixing code suggestions being published when publish ouput is false
This commit is contained in:
commit
5ac41dddd6
1 changed files with 2 additions and 1 deletions
|
|
@ -104,7 +104,8 @@ class PRCodeSuggestions:
|
||||||
if not data:
|
if not data:
|
||||||
data = {"code_suggestions": []}
|
data = {"code_suggestions": []}
|
||||||
|
|
||||||
if data is None or 'code_suggestions' not in data or not data['code_suggestions']:
|
if (data is None or 'code_suggestions' not in data or not data['code_suggestions']
|
||||||
|
and get_settings().config.publish_output):
|
||||||
get_logger().warning('No code suggestions found for the PR.')
|
get_logger().warning('No code suggestions found for the PR.')
|
||||||
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."
|
||||||
get_logger().debug(f"PR output", artifact=pr_body)
|
get_logger().debug(f"PR output", artifact=pr_body)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue