Get the name of all branches of a GitHub repository.

ghr_show_branches(path)

Arguments

path

A string formatted as "owner/repo/subdir" or "owner/repo/subdir@branch", e.g.: "maurolepore/ghr/reference@gh-pages".

Value

A character string.

See also

ghr_fields

Other functions to get github responses: ghr_get

Examples

ghr_show_branches("maurolepore/ghr")
#> [1] "gh-pages" "master" "recursive"