From b499f0994fa9a54ee7b1b5578917453521590cd5 Mon Sep 17 00:00:00 2001 From: shpratee <51993207+shpratee@users.noreply.github.com> Date: Sat, 3 Apr 2021 23:44:31 +0100 Subject: [PATCH] Adding Namespace Id to allow new project to be created under a particular namespace --- gitlab/projects.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gitlab/projects.go b/gitlab/projects.go index 4a77ecb..7c3b274 100644 --- a/gitlab/projects.go +++ b/gitlab/projects.go @@ -165,6 +165,7 @@ func (g *Gitlab) Projects(o *ProjectsOptions) (*ProjectCollection, *ResponseMeta type ProjectAddPayload struct { Name string `json:"name"` // The name of the new project. Equals path if not provided Path string `json:"path"` // Repository name for new project. Generated based on name if not provided (generated lowercased with dashes) + NamespaceId string `json:namespace_id` //Namespace under which the new project should be created } func (g *Gitlab) AddProject(project *ProjectAddPayload) (*Project, *ResponseMeta, error) {