github_add_key: Add a deploy key to GitHub

Description Usage Arguments See Also

View source: R/github-key.R

Description

Adds a public deploy key to an existing GitHub repository. An existing key of the same name is dropped.

Usage

1
2
github_add_key(pubkey, title = "travis+tic", path = ".",
  info = github_info(path), gh_token = NULL, quiet = FALSE)

Arguments

pubkey

[pubkey]
openssl public key, see openssl::read_pubkey().

title

[string]
The title for the new key, default: "travis+tic".

path

[string]
The path to a GitHub-enabled Git repository (or a subdirectory thereof).

info

[list]
GitHub information for the repository, by default obtained through github_info().

gh_token

[Token2.0]
GitHub authentication token, by default obtained from auth_github() with the "public_repo" and (if an organization repo) "write:org" scopes.

quiet

[flag]
Set to FALSE to suppress success message.

See Also

github_create_repo()

Other GitHub functions: github_create_pat, github_create_repo, github_info


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