mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-05 21:30:40 +08:00
feat: enhance help message formatting and support for different git providers
This commit is contained in:
@ -13,5 +13,5 @@ There are several ways to use self-hosted PR-Agent:
|
|||||||
## Qodo Merge 💎
|
## Qodo Merge 💎
|
||||||
Qodo Merge, an app hosted by QodoAI for GitHub\GitLab\BitBucket, is also available.
|
Qodo Merge, an app hosted by QodoAI for GitHub\GitLab\BitBucket, is also available.
|
||||||
<br>
|
<br>
|
||||||
With Qodo Merge, installation is as simple as adding the Qodo Merge app to your relevant repo.
|
With Qodo Merge, installation is as simple as adding the Qodo Merge app to your relevant repositories.
|
||||||
See [here](https://qodo-merge-docs.qodo.ai/installation/qodo_merge/) for more details.
|
See [here](https://qodo-merge-docs.qodo.ai/installation/qodo_merge/) for more details.
|
||||||
|
@ -134,8 +134,18 @@ class PRDescription:
|
|||||||
pr_body += "<hr>\n\n<details> <summary><strong>✨ Describe tool usage guide:</strong></summary><hr> \n\n"
|
pr_body += "<hr>\n\n<details> <summary><strong>✨ Describe tool usage guide:</strong></summary><hr> \n\n"
|
||||||
pr_body += HelpMessage.get_describe_usage_guide()
|
pr_body += HelpMessage.get_describe_usage_guide()
|
||||||
pr_body += "\n</details>\n"
|
pr_body += "\n</details>\n"
|
||||||
elif get_settings().pr_description.enable_help_comment:
|
elif get_settings().pr_description.enable_help_comment and self.git_provider.is_supported("gfm_markdown"):
|
||||||
pr_body += '\n\n___\n\n> 💡 **PR-Agent usage**: Comment `/help "your question"` on any pull request to receive relevant information'
|
if isinstance(self.git_provider, GithubProvider):
|
||||||
|
pr_body += ('\n\n___\n\n> <details> <summary> Need help?</summary><li>Type <code>/help how to ...</code> '
|
||||||
|
'in the comments thread for any questions about PR-Agent usage.</li><li>Check out the '
|
||||||
|
'<a href="https://qodo-merge-docs.qodo.ai/usage-guide/">documentation</a> '
|
||||||
|
'for more information.</li></details>')
|
||||||
|
else: # gitlab
|
||||||
|
pr_body += ("> <details><summary>Need help?</summary>- Type <code>/help how to ...</code> in the comments "
|
||||||
|
"thread for any questions about PR-Agent usage.<br>- Check out the "
|
||||||
|
"<a href='https://qodo-merge-docs.qodo.ai/usage-guide/'>documentation</a> for more information.</details>")
|
||||||
|
# elif get_settings().pr_description.enable_help_comment:
|
||||||
|
# pr_body += '\n\n___\n\n> 💡 **PR-Agent usage**: Comment `/help "your question"` on any pull request to receive relevant information'
|
||||||
|
|
||||||
# Output the relevant configurations if enabled
|
# Output the relevant configurations if enabled
|
||||||
if get_settings().get('config', {}).get('output_relevant_configurations', False):
|
if get_settings().get('config', {}).get('output_relevant_configurations', False):
|
||||||
|
Reference in New Issue
Block a user