Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions gitlab/projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 int `json:namespace_id` //Adding NamespaceId to allow new project to be created under namespace
}

func (g *Gitlab) AddProject(project *ProjectAddPayload) (*Project, *ResponseMeta, error) {
Expand Down