From 9a2ba2d88194134e96d734ecd2d3fdc1a59939a2 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Fri, 8 Aug 2025 09:02:54 +0300 Subject: [PATCH] fix: handle empty changes summary in file label dict based on configuration --- pr_agent/tools/pr_description.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr_agent/tools/pr_description.py b/pr_agent/tools/pr_description.py index 5abea388..a6387a92 100644 --- a/pr_agent/tools/pr_description.py +++ b/pr_agent/tools/pr_description.py @@ -641,7 +641,7 @@ class PRDescription: continue filename = file['filename'].replace("'", "`").replace('"', '`') changes_summary = file.get('changes_summary', "") - if not changes_summary: + if not changes_summary and self.vars.get('include_file_summary_changes', True): get_logger().warning(f"Empty changes summary in file label dict, skipping file", artifact={"file": file}) continue