fix: handle empty changes summary in file label dict based on configuration

This commit is contained in:
mrT23 2025-08-08 09:02:54 +03:00
parent 0090f7be81
commit 9a2ba2d881
No known key found for this signature in database
GPG key ID: D350490E39D5F5AD

View file

@ -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