Commit 4d607ae7 authored by Patrick Webster's avatar Patrick Webster Committed by Sander van Harmelen

projects.go: adding approvals_before_merge to CreateProjectOptions (#461)

* projects.go: adding approvals_before_merge to CreateProjectOptions

* project.go: updating gitlab api doc ref to reflect change to CreateProjectOptions
parent ee2e2d1f
...@@ -371,7 +371,7 @@ func (s *ProjectsService) GetProjectEvents(pid interface{}, opt *GetProjectEvent ...@@ -371,7 +371,7 @@ func (s *ProjectsService) GetProjectEvents(pid interface{}, opt *GetProjectEvent
// CreateProjectOptions represents the available CreateProjects() options. // CreateProjectOptions represents the available CreateProjects() options.
// //
// GitLab API docs: https://docs.gitlab.com/ce/api/projects.html#create-project // GitLab API docs: https://docs.gitlab.com/ee/api/projects.html#create-project
type CreateProjectOptions struct { type CreateProjectOptions struct {
Name *string `url:"name,omitempty" json:"name,omitempty"` Name *string `url:"name,omitempty" json:"name,omitempty"`
Path *string `url:"path,omitempty" json:"path,omitempty"` Path *string `url:"path,omitempty" json:"path,omitempty"`
...@@ -397,6 +397,7 @@ type CreateProjectOptions struct { ...@@ -397,6 +397,7 @@ type CreateProjectOptions struct {
TagList *[]string `url:"tag_list,omitempty" json:"tag_list,omitempty"` TagList *[]string `url:"tag_list,omitempty" json:"tag_list,omitempty"`
PrintingMergeRequestLinkEnabled *bool `url:"printing_merge_request_link_enabled,omitempty" json:"printing_merge_request_link_enabled,omitempty"` PrintingMergeRequestLinkEnabled *bool `url:"printing_merge_request_link_enabled,omitempty" json:"printing_merge_request_link_enabled,omitempty"`
CIConfigPath *string `url:"ci_config_path,omitempty" json:"ci_config_path,omitempty"` CIConfigPath *string `url:"ci_config_path,omitempty" json:"ci_config_path,omitempty"`
ApprovalsBeforeMerge *int `url:"approvals_before_merge" json:"approvals_before_merge"`
} }
// CreateProject creates a new project owned by the authenticated user. // CreateProject creates a new project owned by the authenticated user.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment