github::api
Call any GitHub REST endpoint via gh api and return the parsed JSON. `fields` become `-f key=value` form fields and flip the default method to POST; `body` is sent verbatim as JSON. Non-2xx responses are errors carrying gh's stderr.
- bodyunknown
Raw JSON request body, piped to gh via `--input -`. Mutually exclusive with fields (gh rejects the combination).
- fieldsobject
Form fields, each passed as `-f key=value` (string-typed on the wire).
- jqstring
jq expression gh applies to the response (`--jq`); keeps large responses small.
- methodstring
HTTP method. gh defaults to GET, or POST when fields/body are present.
- paginateboolean
Follow pagination to the end (`--paginate`); combine with jq.
- pathstringrequired
Endpoint path with concrete owner/repo values, e.g. "rate_limit" or "repos/cli/cli/issues"; `{owner}` placeholders are not expanded.
- timeout_msinteger· uint64min 0
Per-call timeout in ms, clamped to the configured max_timeout_ms.
- valueunknownrequired
The JSON gh printed for the requested `--json` fields.