mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-08 12:53:50 -05:00
Merge pull request #201 from Pythagora-io/data_consistency_reformat_reply
# Data consistency reformat reply
This commit is contained in:
@@ -143,7 +143,9 @@ def calculate_pr_changes(convo_entries):
|
||||
file_changes[path]["new_content"] = file_data.get("new_content", "")
|
||||
|
||||
for path, file_info in file_changes.items():
|
||||
file_info["diff"] = get_line_changes(old_content=file_info["old_content"], new_content=file_info["new_content"])
|
||||
file_info["n_new_lines"], file_info["n_del_lines"] = get_line_changes(
|
||||
old_content=file_info["old_content"], new_content=file_info["new_content"]
|
||||
)
|
||||
|
||||
# Convert dict to list
|
||||
return list(file_changes.values())
|
||||
|
||||
Reference in New Issue
Block a user