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)- GitHub App JWT generation (with app_id + private_key configuration)
Structs§
- 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§
- 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.