def _commit_repositories_yaml()

in fog-updater/src/fog_update.py [0:0]


def _commit_repositories_yaml(repo, branch, author, new_content):
    contents = repo.get_contents("repositories.yaml", ref=branch)

    repo.update_file(
        contents.path,
        "Update repositories.yaml with new FOG metrics_yamls list",
        new_content,
        contents.sha,
        branch=branch,
        author=author,
    )

    return True