GitHub compatibility
GitHub compatibility
How gh talks to Ghost: the translation layer, GraphQL, REST v3, OAuth and testing against real gh.
Ghost's services, wearing GitHub's API. Read Data and access first.
A translation layer
How gh comes to believe Ghost is GitHub Enterprise, and the rules for code under src/github.
GraphQL
Code-first types checked against GitHub's published schema, node ids, per-request loaders, and GitHub's lenient validation.
REST v3
GitHub's REST shapes, integer ids, page-numbered pagination with Link headers, and GitHub's error bodies.
OAuth, the device flow and scopes
How gh gets a key, how third-party apps sign users in, and the one function that decides scopes.
Testing against real gh
The gh e2e suite, the capture fixtures, and the spec that turns them into a to-do list.