From 6c2a14d5574e51181c72100a094298836fc8de4a Mon Sep 17 00:00:00 2001 From: mrT23 Date: Wed, 26 Jun 2024 16:20:05 +0300 Subject: [PATCH] fix: correct indentation in PR description preparation logic --- pr_agent/algo/git_patch_processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr_agent/algo/git_patch_processing.py b/pr_agent/algo/git_patch_processing.py index 5ca4e12b..c611aaf3 100644 --- a/pr_agent/algo/git_patch_processing.py +++ b/pr_agent/algo/git_patch_processing.py @@ -136,7 +136,7 @@ def handle_patch_deletions(patch: str, original_file_content_str: str, str: The modified patch with deletion hunks omitted. """ - if not new_file_content_str and edit_type != EDIT_TYPE.ADDED: + if not new_file_content_str and (edit_type == EDIT_TYPE.DELETED or edit_type == EDIT_TYPE.UNKNOWN): # logic for handling deleted files - don't show patch, just show that the file was deleted if get_settings().config.verbosity_level > 0: get_logger().info(f"Processing file: {file_name}, minimizing deletion file")