Description Usage Arguments Details See Also
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.
1 | github_create_pat(path = ".", repo = github_repo(path))
|
path |
|
repo |
|
The relatively cumbersome workflow is due to the fact that creating a PAT requires basic authentication (username + password).
Other GitHub functions: github_add_key
,
github_create_repo
,
github_info
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.