INNER CODE UNIT · Python

build

simonw/simonw · build_readme.py:338

def build(query_string, full_release_pagination):
    """Scan repos matching query_string, mirror their files, update the cache."""
    cache = load_releases_cache()
    repo_nodes = fetch_repos(query_string)

    written = 0
    for repo in repo_nodes:
        if repo["name"] in SKIP_REPOS:
            continue
        update_cache_releases(cache, repo, full_release_pagination)
        write_repo_files(repo, collect_all_releases(repo))
        written += 1

    save_releases_cache(cache)
    print("Scanned {} repos, wrote files for {}".format(len(repo_nodes), written))
    return cache

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…