mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-04 04:40:38 +08:00
fallback to commitable
This commit is contained in:
@ -80,15 +80,14 @@ class PRCodeSuggestions:
|
|||||||
if get_settings().config.publish_output:
|
if get_settings().config.publish_output:
|
||||||
get_logger().info('Pushing PR code suggestions...')
|
get_logger().info('Pushing PR code suggestions...')
|
||||||
self.git_provider.remove_initial_comment()
|
self.git_provider.remove_initial_comment()
|
||||||
if get_settings().pr_code_suggestions.summarize:
|
if get_settings().pr_code_suggestions.summarize and self.git_provider.is_supported("gfm_markdown"):
|
||||||
get_logger().info('Pushing summarize code suggestions...')
|
get_logger().info('Pushing summarize code suggestions...')
|
||||||
|
|
||||||
# generate summarized suggestions
|
# generate summarized suggestions
|
||||||
pr_body = self.generate_summarized_suggestions(data)
|
pr_body = self.generate_summarized_suggestions(data)
|
||||||
|
|
||||||
# add usage guide
|
# add usage guide
|
||||||
if self.git_provider.is_supported(
|
if get_settings().pr_code_suggestions.enable_help_text:
|
||||||
"gfm_markdown") and get_settings().pr_code_suggestions.enable_help_text:
|
|
||||||
pr_body += "<hr>\n\n<details> <summary><strong>✨ Usage guide:</strong></summary><hr> \n\n"
|
pr_body += "<hr>\n\n<details> <summary><strong>✨ Usage guide:</strong></summary><hr> \n\n"
|
||||||
pr_body += HelpMessage.get_improve_usage_guide()
|
pr_body += HelpMessage.get_improve_usage_guide()
|
||||||
pr_body += "\n</details>\n"
|
pr_body += "\n</details>\n"
|
||||||
|
Reference in New Issue
Block a user