INNER CODE UNIT · Python
update_repository_with_json
DmitryRyumin/ICCV-2023-25-Papers · code/markdown_to_json_parser.py:140
def update_repository_with_json(file_updates):
g, github_repo = get_github_repository()
if not github_repo:
return
if not file_updates:
print("No changes detected. Exiting.")
return
# Check if each file has changed
updated_files = [
file_update
for file_update in file_updates
if has_file_changed(
github_repo,
file_update.path,
file_update.content,