Skip to content

Commit

Permalink
Allow usethis to create proper LICENSE later
Browse files Browse the repository at this point in the history
  • Loading branch information
jabenninghoff committed May 8, 2024
1 parent 3cd4667 commit 427f860
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions R/setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -223,16 +223,14 @@ create_github_repo <- function(repo_name, repo_desc = "", private = FALSE, org =
stop("create_from_github() target, '", ut_destdir, "' already exists")
}

license_template <- get_license()
if (license_template == "proprietary") license_template <- NULL
if (is.null(org)) {
create <- gh::gh(
"POST /user/repos",
name = repo_name,
description = repo_desc,
private = private,
gitignore_template = "R",
license_template = license_template,
license_template = NULL,
.api_url = host
)
} else {
Expand All @@ -243,7 +241,7 @@ create_github_repo <- function(repo_name, repo_desc = "", private = FALSE, org =
description = repo_desc,
private = private,
gitignore_template = "R",
license_template = license_template,
license_template = NULL,
.api_url = host
)
}
Expand Down

0 comments on commit 427f860

Please sign in to comment.