Learn R Programming

releaser (version 1.0.0)

get_github_branches: List GitHub repository branches

Description

Retrieve all branch names from a GitHub repository.

Usage

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

Value

A character vector with branch names.

Arguments

gh_repo

[character] GitHub repository in the format "owner/repo".

verbose

[logical] Whether to print current and new remote fields (default: TRUE).

Examples

Run this code
# \donttest{
get_github_branches("r-lib/usethis")
# }

Run the code above in your browser using DataLab