Skip to content

Adding NamespaceId to allow new project to be created under namespace #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from
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 string `json:namespace_id` //Namespace under which the new project should be created
}

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