INNER CODE UNIT · Python

create_git_tree_elements

DmitryRyumin/ICCV-2023-25-Papers · code/markdown_to_json_parser.py:131

def create_git_tree_elements(file_updates):
    return [
        InputGitTreeElement(
            path=update.path, mode="100644", type="blob", content=update.content
        )
        for update in file_updates
    ]


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

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…