Merge pull request #552 from KennyDizi/main

Add `enable_help_text` setting and update PR review preparation method
This commit is contained in:
mrT23
2023-12-26 21:45:21 -08:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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):