This commit is contained in:
mrT23
2024-05-22 21:47:49 +03:00
parent 811965d841
commit 4cd9626217
3 changed files with 8 additions and 1 deletions

View File

@ -146,6 +146,9 @@ def pr_generate_extended_diff(pr_languages: list,
# extend each patch with extra lines of context
extended_patch = extend_patch(original_file_content_str, patch, num_lines=patch_extra_lines)
if not extend_patch:
get_logger().warning(f"Failed to extend patch for file: {file.filename}")
continue
full_extended_patch = f"\n\n## {file.filename}\n\n{extended_patch}\n"
if add_line_numbers_to_hunks: