mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 02:45:18 +00:00
fix: correct indentation in PR description preparation logic
This commit is contained in:
parent
74bb07e9c4
commit
6c2a14d557
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue