GitHub API bindings.
Setup — set github.token in context: a fine-grained or classic
personal access token, or an App installation token (mint those with
::github::app and set for the run via
::hot::ctx/set-secret("github.token", ...) — they expire hourly).
Quick start
::issues ::github::issues
::pulls ::github::pulls
issue ::issues/create-issue("hot-dev", "hot", "Flaky test in coll", {
body: "Seen in CI on #68.",
labels: ["bug", "ci"]
})
open-prs ::pulls/list-pulls("hot-dev", "hot", {state: "open"})
Per-call credentials. Every API-calling function takes an optional
trailing opts Map (token, or app-id, private-key and
installation-id, plus base-url and api-version). See
::github::api.
Webhook verification lives at ::github::webhooks/verify-request
(X-Hub-Signature-256 with the github.webhook.secret context
variable).
Values
API_VERSION
API_VERSION: Str "2026-03-10"
BASE_URL
BASE_URL: Str "https://api.github.com"