get_repo: Get Repo

Description Usage Arguments Details Value See Also Examples

Description

Retrieve a Travis-CI repository

Usage

1
get_repo(repo, ...)

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

...

Additional arguments passed to travisHTTP.

Details

This retrieves a list of details about a given repository.

Value

A list.

See Also

get_builds

get_builds, get_branch

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
# authenticate based on Sys.setenv("GITHUB_TOKEN" = "sometoken")
auth_travis()

# get a repo
get_repo(repo = "cloudyr/travisci")

# get a specific branch
get_branch(repo = "cloudyr/travisci", "master")

# get recent builds for that repo
get_builds(repo = "cloudyr/travisci")

## End(Not run)

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