mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-04 04:40:38 +08:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
ee4f5c765a | |||
23cc968331 | |||
443d06df06 |
@ -7,6 +7,7 @@ fallback_models=["gpt-4o-2024-05-13"]
|
|||||||
git_provider="github"
|
git_provider="github"
|
||||||
publish_output=true
|
publish_output=true
|
||||||
publish_output_progress=true
|
publish_output_progress=true
|
||||||
|
publish_output_no_suggestions=true
|
||||||
verbosity_level=0 # 0,1,2
|
verbosity_level=0 # 0,1,2
|
||||||
use_extra_bad_extensions=false
|
use_extra_bad_extensions=false
|
||||||
# Configurations
|
# Configurations
|
||||||
|
@ -114,8 +114,8 @@ class PRCodeSuggestions:
|
|||||||
|
|
||||||
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']):
|
||||||
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:
|
get_logger().warning('No code suggestions found for the PR.')
|
||||||
get_logger().warning('No code suggestions found for the PR.')
|
if get_settings().config.publish_output and get_settings().config.publish_output_no_suggestions:
|
||||||
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:
|
||||||
self.git_provider.edit_comment(self.progress_response, body=pr_body)
|
self.git_provider.edit_comment(self.progress_response, body=pr_body)
|
||||||
|
Reference in New Issue
Block a user