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.
- Repo
Metadata - 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.