diff --git a/pr_agent/algo/utils.py b/pr_agent/algo/utils.py index 08401514..d0a354a1 100644 --- a/pr_agent/algo/utils.py +++ b/pr_agent/algo/utils.py @@ -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 += "\n" diff --git a/pr_agent/settings/configuration.toml b/pr_agent/settings/configuration.toml index 761d6cd5..961fbeb1 100644 --- a/pr_agent/settings/configuration.toml +++ b/pr_agent/settings/configuration.toml @@ -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