/api/v1/github/getFetch GitHub data from a ref (repo + README, files, commits, PRs, issues, discussions)
{
"properties": {
"page": {
"default": 1,
"description": "Page number for paginated results",
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"per_page": {
"default": 30,
"description": "Results per page",
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"ref": {
"description": "GitHub URL or 'owner/repo' shorthand. A repo URL or owner/repo returns metadata + README; /pull/N -> PR (with comments + changed files), /issues/N -> issue, /discussions/N -> discussion (with threaded replies), /blob/<ref>/<path> -> file (raw.githubusercontent.com URLs work too), /tree/<ref>[/<path>] -> file tree (optionally scoped to a subdirectory), /commit/<sha> -> one commit with diff, /commits[/<ref>/<path>] -> history (optionally for one file), /branches, /releases (or /releases/tag/<tag> | /releases/latest -> one release), /topics/<name> -> top repos with that topic (by stars).",
"maxLength": 2048,
"minLength": 1,
"type": "string"
}
},
"required": [
"ref"
],
"type": "object"
}{
"data": {
"description": "...",
"full_name": "x402-foundation/x402"
},
"kind": "repo"
}