Skip to content

github-platform

Use when working with GitHub platform APIs beyond CI/CD — Issues, Pull Requests, Releases, Pages deployment, GitHub Apps, webhooks, and Octokit SDK. Also use for GitHub REST API patterns, pagination, and authentication.

ModelSource
sonnetpack: deploy
Full Reference

┏━ 🚀 github-platform ━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ GitHub platform APIs — Issues, Releases, Pages ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

GitHub REST API v3 for platform operations beyond CI/CD. All calls use gh api (REST, 5000 req/hr) — never GraphQL. Always prefix with env -u GITHUB_TOKEN to use full-scope keyring token. API version: 2022-11-28. Docs: https://docs.github.com/en/rest

ItemValue
Base URLhttps://api.github.com
API version headerX-GitHub-Api-Version: 2022-11-28
Auth (PAT)Authorization: Bearer <token>
Rate limit (authenticated)5,000 req/hr REST
Rate limit (GITHUB_TOKEN)1,000 req/hr per repo
Pagination default30 items; max per_page=100
Pagination navLink header — follow, don’t construct
I want to…File
Paginate responses, handle rate limits, auth patterns, or gh api CLI usagereference/rest-api.md
Create/update issues, manage labels, comment on PRs, or query issue statereference/issues-prs.md
Create releases, upload binary assets, or manage release tagsreference/releases.md
Enable Pages, trigger deployments, or check deployment statusreference/pages.md
Register a GitHub App, handle webhooks, or generate installation tokensreference/apps-webhooks.md

Usage: Read the reference file matching your current task. Each file is self-contained with gh api examples and inline gotchas.