api: record what real gh sends and check it against what Ghost servesVerifiedBrowse files at dcd2fb6
Gurpal committed a day ago · 25 changed files
The gh suite records every request gh and its git make, one fixture per test under test/fixtures/gh-capture, with logins, hosts, keys and node ids as placeholders and secrets redacted. A unit test validates every captured GraphQL document against github.schema.gql with Ghost's own rules and matches every REST call to openapi.json; the one route gh calls that Ghost does not serve, ssh_signing_keys, is listed with why gh copes. CI uploads the captures as the gh-capture artifact to refresh the fixtures from.
Closes #118
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>