Skip to contents

Calls gh_api() for every page of a list, 100 items a page, and returns NULL instead of an error.

Usage

gh_all(endpoint, ..., token = NULL)

Arguments

endpoint

The endpoint, such as "/user" or "POST /graphql". Its placeholders take the values of the same names in ....

...

The values of the placeholders and the parameters of the request, passed to gh::gh().

token

GitHub token, or NULL for the one that gh finds.

Value

The items of every page, or NULL when GitHub answers with an error.

Examples

if (FALSE) { # \dontrun{
releases <- rghcard:::gh_all("/repos/{owner}/{repo}/releases", owner = "r-lib", repo = "gh")
length(releases)
} # }