github_create_pat: Create a GitHub PAT

Description Usage Arguments Details See Also

View source: R/github-pat.R

Description

Prompts the user to create a personal access token for the GitHub API related to the current repository, e.g., to work around rate limitations. First, the user is directed to the website where a PAT can be created. A suggestion for the PAT's title is copied to the clipboard. Then, the function waits until the user copies a string that resembles a PAT (i.e., 40 lowercase hexadecimal digits) to the clipboard. The clipboard is cleared right after obtaining the PAT.

Usage

1
github_create_pat(path = ".", repo = github_repo(path))

Arguments

path

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

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

Details

The relatively cumbersome workflow is due to the fact that creating a PAT requires basic authentication (username + password).

See Also

Other GitHub functions: github_add_key, github_create_repo, github_info


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