repo_migrate: Migrate a remote git repository

Description Usage Arguments Value Examples

Description

Migrate a remote git repository

Usage

1
2
3
4
repo_migrate(clone_url, repo_name, uid = NULL, description = "",
  mirror = TRUE, private = FALSE,
  api_endpoint = Sys.getenv("GITEA_BASE_URL"),
  gitea_token = Sys.getenv("GITEA_PAT"))

Arguments

clone_url

git://example.com/owner/repo[.git]-style URL

repo_name

name for the gitea repo

uid

numeric. Get it from user_get() or user_get_current(). If you're the first/only users this is very likely 1. If NULL will use user_get_current().

description

repo description

mirror

should this be a mirror? defaults to TRUE

private

should this default to "private"? defaults to TRUE

api_endpoint

URL prefix for your gitea server (no trailing '/')

gitea_token

NOTE: we use access_token in the package

Value

list

Examples

1
2
3
4
## Not run: 
repo_migrate("git://github.com/hrbrmstr/ssllabs", "sslabs")

## End(Not run)

hrbrmstr/crumpets documentation built on May 4, 2019, 8:40 a.m.