@@ -23,7 +23,7 @@ gitlab_envt_token_name: GITLAB_PAT # Name of the environment variable to use
2323gitlab_namespace_id: NULL # Group id where to create the GitLab projet
2424github_url: https://github.com/
2525github_owner: NULL
26- owner_type : user # user or organization
26+ github_owner_type : user # user or organization
2727github_envt_token_name: GITHUB_PAT
2828default_branch: main
2929project_type: package # or book, golem
@@ -77,7 +77,7 @@ thinkr_config_package_github <- here::here("inst", "thinkr_config_test_amend_git
7777cat('forge: github
7878github_url: https://github.com/
7979github_owner: ThinkR-open
80- owner_type : organization
80+ github_owner_type : organization
8181github_envt_token_name: GITHUB_PAT
8282project_type: package
8383name_licence: ThinkR
@@ -174,7 +174,7 @@ init_project_with_all <- function(project_name, project_gitlab_id = NULL, config
174174 ifelse(
175175 forge == "gitlab",
176176 paste("namespace: ", namespace_type),
177- paste("GitHub Owner (", config$owner_type , "): ", config$github_owner)
177+ paste("GitHub Owner (", config$github_owner_type , "): ", config$github_owner)
178178 ),
179179 paste("project_name: ", project_name),
180180 paste("project_type: ", config$project_type)
@@ -420,25 +420,25 @@ init_project_with_all <- function(project_name, project_gitlab_id = NULL, config
420420 # fetch user/orga node id
421421 req_user_node_id <- glue(
422422 'query{
423- $_owner_type_ $(login: "$_organization_$"){
423+ $_github_owner_type_ $(login: "$_organization_$"){
424424 id
425425 }
426426 }',
427427 .open = "$_",
428428 .close = "_$",
429- owner_type = config$owner_type ,
429+ github_owner_type = config$github_owner_type ,
430430 organization = config$github_owner,
431431 )
432432
433433 user_node_id <- gh_gql(
434434 query = req_user_node_id,
435435 .token = Sys.getenv(config$github_envt_token_name)
436436 ) %>%
437- pluck("data", config$owner_type , "id")
437+ pluck("data", config$github_owner_type , "id")
438438
439439 # emit warning if node id is not found
440440 if (is.null(user_node_id)) {
441- cli_alert_warning("Failed to fetch {config$github_owner} as a GitHub {config$owner_type }")
441+ cli_alert_warning("Failed to fetch {config$github_owner} as a GitHub {config$github_owner_type }")
442442 }
443443
444444 # create board
0 commit comments