A ready-to-run Posel workspace built against the real GitHub API, organized the way a working project would be: seven collections, ~30 requests across REST and GraphQL, two environments, and a single inherited secret.
File ▸ Open Workspace… and pick this github-api folder.
Every request inherits Authorization: Bearer {{secret:github_token}} from the workspace root — set
that secret once and it's used everywhere:
- View ▸ Secrets… (or open any request's Auth tab and click Set value).
- Paste a GitHub token — create a fine-grained or classic PAT;
repo+read:userscopes cover everything here. Posel stores it in your OS keychain, never on disk. Only the{{secret:github_token}}reference is in the.toml, so this folder is safe to commit.
No token yet? The whole Meta collection works without one — it overrides the workspace auth to
none, so you get a green response the moment you open the workspace.
- Meta —
zen,octocat,rate_limit,meta,emojis. Unauthenticated; a folder-levelauth = nonestops the inherited Bearer token. Start here. - User — the authenticated user, followers, starred repos, look up any user, and a
PATCHthat edits your bio. - Repositories — get a repo, list commits / branches / contributors, fetch the README, plus a
reversible star (
PUT) / unstar (DELETE) pair and aPOSTthat creates a repo. - Issues — the full lifecycle: list → create → get → close (
PATCH) → comment. Bodies live in.body.jsonsidecars or inline. - Pull Requests — list, get one, list its files and reviews.
- Search — repositories, code, issues, and users; each is a query-parameter showcase.
- GraphQL — viewer + top repos, paginated repo issues (with variables), repo search, and the
rateLimitquery. Hit Refresh to introspect the schema and get schema-aware autocomplete.
personal (starvy/posel) and work (github/docs). Switch with ⌘E; {{owner}}, {{repo}},
{{username}}, {{issue_number}}, and {{pr_number}} all follow the active environment. work
adds a policy that flags any plain-http:// send.
Every request carries assertions — status codes, JSON-path exists/equals/gt, response latency,
and GraphQL graphql_ok — so a green/red badge tells you at a glance whether a call behaved.
✎ Requests marked
✎in their comments write to your account — create/close issues, comment, star, edit your bio, create a repo. They act on the active environment's repo (personaldefaults tostarvy/posel). Point them at a throwaway repo, or just read the request without sending, if you don't want the side effects.