org_exists()
- returns TRUE
if the organization(s) exist on GitHub and FALSE
otherwise.
org_teams()
- returns a (filtered) vector of organization teams.
org_team_details()
- returns a data frame of all organization teams containing identification and permission details.
org_repos()
- returns a (filtered) vector of organization repositories.
org_repo_search()
- search for repositories within an organization (preferred for large organizations).
org_repo_stats()
- returns a tibble of repositories belonging to a GitHub organization along with some
basic statistics about those repositories.
org_exists(org)org_repo_search(org, name, extra = "", full_repo = TRUE)
org_repo_stats(
org,
branch = NULL,
filter = "",
filter_type = "in:name",
inc_commits = TRUE,
inc_issues = TRUE,
inc_prs = TRUE
)
org_repos(
org,
filter = NULL,
exclude = FALSE,
full_repo = TRUE,
sort = c("full_name", "created", "updated", "pushed"),
direction = c("asc", "desc"),
type = c("all", "public", "private", "forks", "sources", "member", "internal")
)
org_team_details(org)
org_teams(org, filter = NULL, exclude = FALSE, team_type = c("name", "slug"))
org_exists()
returns a logical vector.
org_teams()
, org_repos
, and org_repo_search()
return a character vector of team or repo names.
org_team_details()
and org_repo_stats()
return tibbles.
Character. Name of the GitHub organization(s).
Character. Full or partial repo name to search for within the org
Character. Any additional search qualifiers, see Searching for repositories for details.
Logical. Should the full repository address be returned (e.g. owner/repo
instead of just repo
).
Character. The branch to use for counting commits, if NULL
then each repo's default branch is used.
Character. Regular expression pattern for matching (or excluding) results
Character. One or more GitHub search in
qualifiers.
See documentation
for more details.
Logical. Include commit statistics (branch
, commits
, last_update
)
Logical. Include issue statistics (open_issues
, closed_issues
)
Logical. Include pull request statistics (open_prs
, merged_prs
, closed_prs
)
Logical. Should entries matching the regular expression be excluded or included.
Character. Sorting criteria to use, can be one of "created", "updated", "pushed", or "full_name".
Character. Sorting order to use.
Character. Specifies the type of repositories you want, can be one of "all", "public", "private", "forks", "sources", "member", or "internal".
Character. Either "slug" if the team names are slugs or "name" if full team names are provided.
if (FALSE) {
# Org repos and teams
org_repos("ghclass-test")
org_repos("ghclass-test", filter = "hw1-")
org_teams("ghclass-test")
org_team_details("ghclass-test")
}
Run the code above in your browser using DataLab