create_repo: Create the main repo from a local directory

create_repoR Documentation

Create the main repo from a local directory

Description

Create the main repo from a local directory

Usage

create_repo(
  username = Sys.getenv("git.user"),
  token = Sys.getenv("git.token"),
  repo = basename(getwd()),
  base_dir = dirname(getwd()),
  groupname = "",
  pre = "",
  ssh = FALSE,
  server = "https://gitlab.com/api/v4/"
)

Arguments

username

Username

token

Token (e.g., Sys.getenv("git.token") or Sys.getenv("GITHUB_PAT"))

repo

Name of the repo (assignment)

base_dir

Base directory for the repo. file.path(directory, assignment) should exist

groupname

Group to create on GitLab (defaults to user's namespace)

pre

Pre-amble for the repo (assignment) name

ssh

Use SSH for authentication

server

The GitLab API server

Details

See https://github.com/vnijs/gitgadget for additional documentation


gitgadget documentation built on Aug. 24, 2023, 9:08 a.m.