You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
557 B

#' Setup .build.yml for SourceHut builds
#'
#' @md
#' @param username your SourecHut user id (with or without the leading tilde)
#' @param open if `TRUE`, open the resultant file
#' @export
use_builds <- function(username = sourcehut_user(), open = TRUE) {
check_is_package("use_builds()")
pkg <- basename(rprojroot::find_package_root_file())
use_template(
template = "build.yml",
save_as = ".build.yml",
data = list(
username = username,
pkg = pkg
),
open = open,
ignore = TRUE,
package = "sourcehut"
)
}