github::api
Call any GitHub REST endpoint via gh api: { path: "repos/OWNER/REPO/issues", method?, fields?, body?, jq?, paginate?, timeout_ms? } -> { value: <parsed JSON> }. fields become -f key=value form fields (default method flips to POST); body is sent verbatim as the JSON request body. 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") — placeholder expansion needs a checkout the worker does not have.
- 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.