gl_new_project: Manage projects

View source: R/projects_and_repos.R

gl_new_projectR Documentation

Manage projects

Description

Manage projects

Usage

gl_new_project(name, path, ...)

gl_edit_project(project, ...)

gl_delete_project(project)

Arguments

name

of the new project. The name of the new project. Equals path if not provided

path

to the new project if name is not provided. Repository name for new project. Generated based on name if not provided (generated as lowercase with dashes).

...

passed on to gitlab() API call for "Create project"

project

The ID or URL-encoded path of the project.

Details

You can use extra parameters as proposed in the GitLab API:

  • namespace_id: Namespace for the new project (defaults to the current user’s namespace).

Value

A tibble with the project information. gl_delete_project() returns an empty tibble.

Examples

## Not run: 
set_gitlab_connection(
  gitlab_url = "https://gitlab.com", 
  private_token = Sys.getenv("GITLAB_COM_TOKEN")
)
# Create new project
gl_new_project(name = "toto")
# Edit existing project
gl_edit_project(project = "<<your-project-id>>", default_branch = "main")
# Delete project
gl_delete_project(project = "<<your-project-id>>")

## End(Not run)

gitlabr documentation built on Sept. 13, 2022, 5:06 p.m.