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.
| Model | Source |
|---|---|
| sonnet | pack: deploy |
Full Reference
┏━ 🚀 github-platform ━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ GitHub platform APIs — Issues, Releases, Pages ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
GitHub Platform
Section titled “GitHub Platform”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
Quick Reference
Section titled “Quick Reference”| Item | Value |
|---|---|
| Base URL | https://api.github.com |
| API version header | X-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 default | 30 items; max per_page=100 |
| Pagination nav | Link header — follow, don’t construct |
Reference Index
Section titled “Reference Index”| I want to… | File |
|---|---|
Paginate responses, handle rate limits, auth patterns, or gh api CLI usage | reference/rest-api.md |
| Create/update issues, manage labels, comment on PRs, or query issue state | reference/issues-prs.md |
| Create releases, upload binary assets, or manage release tags | reference/releases.md |
| Enable Pages, trigger deployments, or check deployment status | reference/pages.md |
| Register a GitHub App, handle webhooks, or generate installation tokens | reference/apps-webhooks.md |
Usage: Read the reference file matching your current task. Each file is self-contained with gh api examples and inline gotchas.