pub async fn get_github_json<T: DeserializeOwned>(
client: &Client,
url: &str,
) -> Result<T>Expand description
Fetch JSON from the GitHub API with the recommended headers, honoring a
GITHUB_TOKEN/GH_TOKEN env var to raise the rate limit when present.
GitHub returns 403 for API requests missing an Accept/X-GitHub-Api-Version
header under load, so we always send them.