From e7f2c0b27ded1c20256b0fafdff92d47333752df Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Sat, 6 Feb 2021 09:27:04 -0600 Subject: [PATCH] Provide pointer to GHA docs (#1351) Fixes #1307 --- R/github-actions.R | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/R/github-actions.R b/R/github-actions.R index 598018cf8..2cd5e83dd 100644 --- a/R/github-actions.R +++ b/R/github-actions.R @@ -143,8 +143,10 @@ use_github_action <- function(name, url <- glue( "https://raw.githubusercontent.com/r-lib/actions/master/examples/{name}" ) + readme <- "https://github.com/r-lib/actions/blob/master/examples/README.md" } else { stopifnot(is_string(url)) + readme <- NULL } if (is.null(save_as)) { @@ -163,6 +165,9 @@ use_github_action <- function(name, if (open && new) { edit_file(proj_path(save_as)) } + if (!is.null(readme)) { + ui_todo("Learn more at <{readme}>") + } invisible(new) }