Skip to content

Commit e7f2c0b

Browse files
authored
Provide pointer to GHA docs (#1351)
Fixes #1307
1 parent d2cf967 commit e7f2c0b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

R/github-actions.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,10 @@ use_github_action <- function(name,
143143
url <- glue(
144144
"https://raw.githubusercontent.com/r-lib/actions/master/examples/{name}"
145145
)
146+
readme <- "https://github.com/r-lib/actions/blob/master/examples/README.md"
146147
} else {
147148
stopifnot(is_string(url))
149+
readme <- NULL
148150
}
149151

150152
if (is.null(save_as)) {
@@ -163,6 +165,9 @@ use_github_action <- function(name,
163165
if (open && new) {
164166
edit_file(proj_path(save_as))
165167
}
168+
if (!is.null(readme)) {
169+
ui_todo("Learn more at <{readme}>")
170+
}
166171

167172
invisible(new)
168173
}

0 commit comments

Comments
 (0)