travis_repo_info: Get repository information from Travis CI

View source: R/travis-basic.R

travis_repo_infoR Documentation

Get repository information from Travis CI

Description

Return repository information, in particular the repository ID.

travis_repo_id() returns the repo ID obtained from travis_repo_info().

travis_repo_settings() returns build settings

Usage

travis_repo_info(repo = github_repo(), endpoint = get_endpoint())

travis_has_repo(repo = github_repo(), endpoint = get_endpoint())

travis_repo_id(repo = github_repo(), endpoint = get_endpoint())

travis_repo_settings(repo = github_repo(), endpoint = get_endpoint())

Arguments

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().

endpoint

[string]
Which Travis endpoint to use. Defaults to ".org". Accepted values are ".com" and ".org". Can be set globally via env var R_TRAVIS.

Details

travis_repo_info() queries the "/repos/:repo" API.

See Also

Travis CI API documentation

Other Travis CI functions: travis_get_caches(), travis_repos()


ropenscilabs/travis documentation built on May 18, 2022, 8:33 p.m.