Expand description
The synchronous GitHub client: accounts, sections, detail, writes and pull request diffs. No GPUI; dashboards call it off the UI thread.
Every call runs as one account. login is a signed-in or gh login from
Client::accounts; with GH_TOKEN, GITHUB_TOKEN or github.token
set, that token is used whatever the login (REQ-60).
Modules§
- actions
- GitHub Actions, deployments and releases REST client.
- copilot_
agent_ sessions - The Copilot agent session API: the session document and its log.
- copilot_
agents - GitHub cloud-agent task API: validation and transport mapping.
- issue_
report - Reviewed issue reports for the repository the app names. No UI or image I/O.
- model
- The GitHub data model shown by the GitHub board. Field names follow the JSON (camelCase).
- scope
- Searches limited to named repositories. Each repository becomes one
repo:qualifier, which GitHub combines with OR, and the qualifiers are split across as many searches as GitHub’s query length limit needs. - validate
- Input checks (GH-09, DF-07). A failed check is an
Error::Statuswith status 400.
Structs§
- Bound
Read - A verified principal and one in-memory credential. Never serialized or Debug.
- Client
- Organization
- Package
Release - Package
Repository - Release
Asset - Resolved
Repository
Enums§
Constants§
- API_URL
- API_
URL_ ENV - Debug builds only: the GitHub API and Copilot API base to use instead of
API_URL, such as a local fixture server for screenshots. - MAX_
DIFF_ FILES - GitHub’s limit for the pulls files API.
- MAX_
FILE_ BYTES - MAX_
IMAGE_ BYTES
Functions§
- credential_
login - The login that owns
credential, fromGET /user. No retry, cache or fallback credential: the answer identifies exactly this token. - file_
pages - Pages of the pulls files API to request: at least one, at most GitHub’s 3,000-file limit.
- newest_
package_ release - Select the newest published eligible release containing this exact ZIP name.