Skip to content

Commit

Permalink
Make code runnable
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy authored Apr 10, 2024
1 parent 9e64daf commit 9cf1833
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/github_token.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ create_github_token <- function(scopes = c("repo", "user", "gist", "workflow"),

hint <- code_hint_with_host("gitcreds::gitcreds_set", host)
ui_bullets(c(
"_" = "Call {.code {hint}} to register this token in the local Git
"_" = "Call {.run {hint}} to register this token in the local Git
credential store.",
"i" = "It is also a great idea to store this token in any
password-management software that you use."
Expand Down Expand Up @@ -130,14 +130,14 @@ pat_sitrep <- function(host = "https://github.com",

if (!have_pat) {
kv_line("Personal access token for {.val {host}}", NULL)
hint <- code_hint_with_host("create_github_token", host, "host")
hint <- code_hint_with_host("usethis::create_github_token", host, "host")
ui_bullets(c(
"_" = "To create a personal access token, call {.code {hint}}."
"_" = "To create a personal access token, call {.run {hint}}."
))
hint <- code_hint_with_host("gitcreds::gitcreds_set", host)
url <- "https://usethis.r-lib.org/articles/articles/git-credentials.html"
ui_bullets(c(
"_" = "To store a token for current and future use, call {.code {hint}}.",
"_" = "To store a token for current and future use, call {.run {hint}}.",
"i" = "Read more in the {.href [Managing Git(Hub) Credentials]({url})} article."
))
return(invisible(FALSE))
Expand Down

0 comments on commit 9cf1833

Please sign in to comment.