travis_repo_info: Get repository information from Travis CI

Description Usage Arguments See Also

View source: R/travis-basic.R

Description

Return repository information, in particular the repository ID.

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

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

travis_repo_settings() returns build settings

Usage

1
2
3
4
5
6
7
travis_repo_info(repo = github_repo(), token = travis_token(repo))

travis_has_repo(repo = github_repo(), token = travis_token())

travis_repo_id(repo = github_repo(), token = travis_token(repo))

travis_repo_settings(repo = github_repo(), token = travis_token(repo))

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

token

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

See Also

Travis CI API documentation

Other Travis CI functions: travis_get_caches, travis_repos, travis_set_pat


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