Get all repositories for a given GitHub organization or username
Source:R/branch_release_gh.R
get-github-repos.Rdget_user_github_repos and get_org_github_repos use the
GitHub API, to obtain the repositories hosted on GitHub via the 'username' or
the organization ('org') names, respectively.
Usage
get_org_github_repos(
per_page = 100,
pages = Inf,
org = "Bioconductor",
archived = FALSE
)
get_user_github_repos(per_page = 100, pages = Inf, username, archived = FALSE)Arguments
- per_page
Number of items to return per page. If omitted, will be substituted by
max(.limit, 100)if.limitis set, otherwise determined by the API (never greater than 100).- pages
numeric(1)The number of pages to 'flip' through (default Inf)- org
character(1)The organization for which to extract the names of the repositories on GitHub (default "Bioconductor").- archived
logical(1)Whether to include archived repositories in the query results (default FALSE)- username
character(1)The GitHub username used to query repositories
Value
A vector of default branches whose names correspond to the organization or user GitHub repositories
Examples
if (interactive()) {
get_user_github_repos(username = "github-username")
}