GitHub Get
glim_github_getFetch GitHub data from a single ref. 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// -> file (raw.githubusercontent.com URLs work too), /tree/[/] -> file tree (optionally scoped to a subdirectory), /commit/ -> one commit with diff, /commits[//] -> history (optionally for one file), /branches, /releases (or /releases/tag/ | /releases/latest -> one release), /topics/ -> top repos with that topic (by stars).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | 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). | |
| page | No | Page number | |
| format | No | Output encoding. 'text' (default): compact human-readable text, fewer tokens (file returns raw content). 'json': machine-readable JSON. | text |
| per_page | No | Results per page |