mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-13 11:25:18 +00:00
Merge pull request #552 from KennyDizi/main
Add `enable_help_text` setting and update PR review preparation method
This commit is contained in:
commit
a9c8fb6a73
2 changed files with 2 additions and 1 deletions
|
|
@ -38,6 +38,7 @@ enable_review_labels_effort=false
|
|||
require_all_thresholds_for_incremental_review=false
|
||||
minimal_commits_for_incremental_review=0
|
||||
minimal_minutes_for_incremental_review=0
|
||||
enable_help_text=true # Determines whether to include help text in the PR review. Enabled by default.
|
||||
|
||||
[pr_description] # /describe #
|
||||
publish_labels=true
|
||||
|
|
|
|||
|
|
@ -252,7 +252,7 @@ class PRReviewer:
|
|||
user = self.git_provider.get_user_id()
|
||||
|
||||
# Add help text if gfm_markdown is supported
|
||||
if self.git_provider.is_supported("gfm_markdown"):
|
||||
if self.git_provider.is_supported("gfm_markdown") and get_settings().pr_reviewer.enable_help_text:
|
||||
markdown_text += "\n\n<details> <summary><strong>✨ Usage tips:</strong></summary><hr> \n\n"
|
||||
bot_user = "[bot]" if get_settings().github_app.override_deployment_type else get_settings().github_app.bot_user
|
||||
if user and bot_user not in user and not get_settings().get("CONFIG.CLI_MODE", False):
|
||||
|
|
|
|||
Loading…
Reference in a new issue