get_github_branches function

List GitHub repository branches

List GitHub repository branches

Retrieve all branch names from a GitHub repository.

get_github_branches( gh_repo = file.path("rjdverse", "rjd3toolkit"), verbose = TRUE )

Arguments

  • gh_repo: [character ] GitHub repository in the format "owner/repo".
  • verbose: [logical ] Whether to print current and new remote fields (default: TRUE).

Returns

A character vector with branch names.

Examples

get_github_branches("r-lib/usethis")

Other functions in releaser

Related functions from the same R package