Add intro text option for PR reviews in configuration and utils

This commit is contained in:
mrT23
2024-09-29 07:06:48 +03:00
parent f3fd439d47
commit d77a819d92
2 changed files with 4 additions and 0 deletions

View File

@ -120,6 +120,9 @@ def convert_to_markdown_v2(output_data: dict,
if not output_data or not output_data.get('review', {}):
return ""
if get_settings().get("pr_reviewer.enable_intro_text", False):
markdown_text += f"Here are some relevant observations to aid the review process:\n\n"
if gfm_supported:
markdown_text += "<table>\n"

View File

@ -69,6 +69,7 @@ enable_review_labels_effort=true
require_all_thresholds_for_incremental_review=false
minimal_commits_for_incremental_review=0
minimal_minutes_for_incremental_review=0
enable_intro_text=true
enable_help_text=false # Determines whether to include help text in the PR review. Enabled by default.
# auto approval
enable_auto_approval=false