Skip to main content

Module github

Module github 

Source
Expand description

GitHub API and raw file access helpers Helpers for accessing the GitHub API and raw repository files.

Several providers need to talk to GitHub, either to query the REST API (api.github.com) or to download individual files. These helpers centralise that access, including authentication via the GITHUB_TOKEN environment variable, so call sites do not each reimplement it.

Structs§

License
License information from the GitHub repos API.
RepoMetadata
Repository metadata returned by the GitHub repos API.

Functions§

download_contents
Downloads a file via the GitHub contents API.
download_raw_file
Downloads a raw file from a repository via raw.githubusercontent.com.
load_github_json
Fetches a GitHub REST API endpoint and parses the response as JSON.
repo_metadata
Fetches repository metadata from the GitHub repos API.