Get the name of all branches of a GitHub repository.
ghr_show_branches(path)
path | A string formatted as "owner/repo/subdir" or "owner/repo/subdir@branch", e.g.: "maurolepore/ghr/reference@gh-pages". |
---|
A character string.
ghr_fields
Other functions to get github responses: ghr_get
ghr_show_branches("maurolepore/ghr")#> [1] "gh-pages" "master" "recursive"