get_repo_settings: Get/Set Repo Settings

Description Usage Arguments Details Value See Also Examples

Description

Get or set repository settings

Usage

1
2
3
get_repo_settings(repo, ...)

set_repo_settings(repo, settings = list(), ...)

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.

settings

A list containing named settings and their values. See results of get_repo_settings and the API documentation for details. The response from either get_repo_settings or set_repo_settings can be passed directly as the value of this argument.

Details

get_repo_settings retrieves Travis-CI settings for a given repository. set_repo_settings modifies those settings based upon a list of input values. Use get_env_vars and add_env_vars to modify environment variables used in a build. Most of these features can also be modified using a .travis.yml file in the GitHub repository itself (see Building an R Project in the Travis CI documentation for details).

Value

A list of settings.

See Also

get_builds

get_repo, get_env_vars

Examples

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

# get settings
g <- get_repo_settings(repo = "cloudyr/travisci")

# pass modified settings list
g[[1]] <- TRUE
set_repo_settings(repo = "cloudyr/travisci", g)

# specify new settings individually
set_repo_settings(repo = "cloudyr/travisci", list("builds_only_with_travis_yml" = FALSE))

## End(Not run)

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