travis_set_pat: Set the GITHUB_PAT variable on Travis

Description Usage Arguments See Also

View source: R/travis-pat.R

Description

Assigns a GitHub PAT to the GITHUB_PAT private variable on Travis CI via travis_set_var(), among others this works around GitHub API rate limitations. By default, the PAT is obtained from github_create_pat().

Usage

1
2
travis_set_pat(pat = NULL, repo = github_repo(),
  token = travis_token(repo), quiet = FALSE)

Arguments

pat

[string]
If set, avoids calling github_create_pat()

repo

[string|numeric]
The GitHub repo slug, by default obtained through github_repo(). Alternatively, the Travis CI repo ID, e.g. obtained through travis_repo_id().

token

[Token2.0]
A Travis CI token obtained from travis_token() or auth_travis().

quiet

[flag]
Set to FALSE to suppress success message.

See Also

Other Travis CI functions: travis_get_caches, travis_repo_info, travis_repos


romainfrancois/travis documentation built on May 27, 2019, 1:49 p.m.