From 76ed9156d30341ea4395cd0c1c187e2f384d209f Mon Sep 17 00:00:00 2001 From: tomoya-kawaguchi Date: Tue, 14 Oct 2025 11:33:52 +0900 Subject: [PATCH 1/2] fix: safe attribute access in review prompt template --- pr_agent/settings/pr_reviewer_prompts.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr_agent/settings/pr_reviewer_prompts.toml b/pr_agent/settings/pr_reviewer_prompts.toml index a2f2d8a8..f13e1aa2 100644 --- a/pr_agent/settings/pr_reviewer_prompts.toml +++ b/pr_agent/settings/pr_reviewer_prompts.toml @@ -217,7 +217,7 @@ Ticket Description: ##### {%- endif %} -{%- if ticket.requirements %} +{%- if ticket.requirements is defined %} Ticket Requirements: ##### {{ ticket.requirements }} From 3dd373a77e7427500c334ff9bfb37d17fb731d34 Mon Sep 17 00:00:00 2001 From: Hussam Lawen Date: Thu, 16 Oct 2025 17:38:34 +0300 Subject: [PATCH 2/2] Update pr_agent/settings/pr_reviewer_prompts.toml Co-authored-by: qodo-merge-for-open-source[bot] <189517486+qodo-merge-for-open-source[bot]@users.noreply.github.com> --- pr_agent/settings/pr_reviewer_prompts.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr_agent/settings/pr_reviewer_prompts.toml b/pr_agent/settings/pr_reviewer_prompts.toml index f13e1aa2..477f8553 100644 --- a/pr_agent/settings/pr_reviewer_prompts.toml +++ b/pr_agent/settings/pr_reviewer_prompts.toml @@ -217,7 +217,7 @@ Ticket Description: ##### {%- endif %} -{%- if ticket.requirements is defined %} +{%- if ticket.requirements is defined and ticket.requirements %} Ticket Requirements: ##### {{ ticket.requirements }}