Skip to main content

gh_api_get

Function gh_api_get 

Source
pub fn gh_api_get(endpoint: &str, token: Option<&str>) -> Result<Value>
Expand description

GET a GitHub API endpoint via the gh CLI (single request, no pagination).

Returns the parsed JSON response. Useful for endpoints that return a single object (e.g. the Compare API) rather than a paginated array.