Expand description
Native reqwest HTTP client for the GitHub API — replaces gh CLI subprocesses.
Uses a shared reqwest::Client with connection pooling, reads rate-limit
headers proactively, and supports concurrent requests via tokio::join!.
Auth: uses the centralized [TokenResolver] which supports:
GH_TOKEN/GITHUB_TOKENenvironment variablesgh.auth.tokenconfig valuegh auth tokenCLI fallback (default — just rungh auth login)
Structs§
- Commit
Meta - Read
behind_byout of a compare response. - GhHttp
- Native HTTP client for the GitHub API with connection pooling and proactive rate-limit avoidance.
- PrReview
Batch Data - Data fetched for one PR by
GhHttp::batch_fetch_pr_review_data. - Rate
Limit Metrics - Snapshot of GitHub API rate-limit metrics.
Functions§
- drain_
call_ counts - Take the call counts accumulated since the last drain, largest first.
- has_
status - A branch protection read that means “no protection”: 404 “Branch not protected”, or the 403
True when
textcarries the HTTP status in thefailed (404 ...)form that every request error here uses, orHTTP 404from the CLI. The status code sits apart from the URL, so an issue number such as 1404 does not match - rate_
limit_ metrics - Return a snapshot of GitHub API rate-limit metrics.
- status_
label_ color - Return the hex color string for a given
status:*label.