diff --git a/pr_agent/settings/pr_description_prompts.toml b/pr_agent/settings/pr_description_prompts.toml index 6fd17b89..21524731 100644 --- a/pr_agent/settings/pr_description_prompts.toml +++ b/pr_agent/settings/pr_description_prompts.toml @@ -158,6 +158,7 @@ pr_files: ... {%- endif %} ``` +(replace '...' with the actual values) {%- endif %} Response (should be a valid YAML, and nothing else): diff --git a/pr_agent/settings/pr_reviewer_prompts.toml b/pr_agent/settings/pr_reviewer_prompts.toml index 9401a0d3..fb5a134e 100644 --- a/pr_agent/settings/pr_reviewer_prompts.toml +++ b/pr_agent/settings/pr_reviewer_prompts.toml @@ -221,6 +221,59 @@ The PR code diff: ====== +{%- if duplicate_prompt_examples %} + + +Example output: +```yaml +review: +{%- if related_tickets %} + ticket_compliance_check: + - ticket_url: | + ... + ticket_requirements: | + ... + fully_compliant_requirements: | + ... + not_compliant_requirements: | + ... + overall_compliance_level: | + ... +{%- endif %} +{%- if require_estimate_effort_to_review %} + estimated_effort_to_review_[1-5]: | + 3 +{%- endif %} +{%- if require_score %} + score: 89 +{%- endif %} + relevant_tests: | + No + key_issues_to_review: + - relevant_file: | + ... + issue_header: | + ... + issue_content: | + ... + start_line: ... + end_line: ... + - ... + security_concerns: | + No +{%- if require_can_be_split_review %} + can_be_split: + - relevant_files: + - ... + - ... + title: ... + - ... +{%- endif %} +``` +(replace '...' with the actual values) +{%- endif %} + + Response (should be a valid YAML, and nothing else): ```yaml """ diff --git a/pr_agent/tools/pr_reviewer.py b/pr_agent/tools/pr_reviewer.py index 9905ae3d..ee3bb963 100644 --- a/pr_agent/tools/pr_reviewer.py +++ b/pr_agent/tools/pr_reviewer.py @@ -94,6 +94,7 @@ class PRReviewer: "enable_custom_labels": get_settings().config.enable_custom_labels, "is_ai_metadata": get_settings().get("config.enable_ai_metadata", False), "related_tickets": get_settings().get('related_tickets', []), + 'duplicate_prompt_examples': get_settings().config.get('duplicate_prompt_examples', False), } self.token_handler = TokenHandler(