get_branch: Get Branch

Description Usage Arguments Details Value See Also Examples

Description

Retrieve branches for a repo

Usage

1
get_branch(repo, branch, ...)

Arguments

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 travisHTTP.

Details

This can retrieve a list of recent branches for a given repo, or if branch is specified, details about a specific branch.

Value

A list.

See Also

get_builds

get_repo, get_builds

Examples

 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)

cloudyr/travisci documentation built on May 13, 2019, 8:22 p.m.