Description Usage Arguments Details Value See Also Examples
Retrieve branches for a repo
1 | get_branch(repo, branch, ...)
|
repo |
A numeric repository ID (such as returned by this function), a character string specifying a GitHub repository “slug” (e.g., ghusername/ghreponame), or an object of class “travis_repo”. |
branch |
Optionally, a character string specifying the name of a branch. |
... |
Additional arguments passed to |
This can retrieve a list of recent branches for a given repo, or if branch
is specified, details about a specific branch.
A list.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# authenticate based on Sys.setenv("GITHUB_TOKEN" = "sometoken")
auth_travis()
# get branches for a given repo
get_branch(repo = "cloudyr/travisci")
# get a specific branch
get_branch(repo = "cloudyr/travisci", "master")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.