From 63ebfb5012e2de5daf5cc239cdca2b9d7cdd73b5 Mon Sep 17 00:00:00 2001 From: Liam Colburn Date: Fri, 31 May 2024 14:35:35 -0700 Subject: [PATCH] Update deprectated fields --- README.md | 10 +++++----- examples/projects.go | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 9ed7d40a1..fa5a049a3 100644 --- a/README.md +++ b/README.md @@ -160,11 +160,11 @@ func main() { // Create new project p := &gitlab.CreateProjectOptions{ - Name: gitlab.Ptr("My Project"), - Description: gitlab.Ptr("Just a test project to play with"), - MergeRequestsEnabled: gitlab.Ptr(true), - SnippetsEnabled: gitlab.Ptr(true), - Visibility: gitlab.Ptr(gitlab.PublicVisibility), + Name: gitlab.Ptr("My Project"), + Description: gitlab.Ptr("Just a test project to play with"), + MergeRequestsAccessLevel: gitlab.Ptr(gitlab.EnabledAccessControl), + SnippetsAccessLevel: gitlab.Ptr(gitlab.EnabledAccessControl), + Visibility: gitlab.Ptr(gitlab.PublicVisibility), } project, _, err := git.Projects.CreateProject(p) if err != nil { diff --git a/examples/projects.go b/examples/projects.go index 2e9e9e672..e58f2d899 100644 --- a/examples/projects.go +++ b/examples/projects.go @@ -30,11 +30,11 @@ func projectExample() { // Create new project p := &gitlab.CreateProjectOptions{ - Name: gitlab.Ptr("My Project"), - Description: gitlab.Ptr("Just a test project to play with"), - MergeRequestsEnabled: gitlab.Ptr(true), - SnippetsEnabled: gitlab.Ptr(true), - Visibility: gitlab.Ptr(gitlab.PublicVisibility), + Name: gitlab.Ptr("My Project"), + Description: gitlab.Ptr("Just a test project to play with"), + MergeRequestsAccessLevel: gitlab.Ptr(gitlab.EnabledAccessControl), + SnippetsAccessLevel: gitlab.Ptr(gitlab.EnabledAccessControl), + Visibility: gitlab.Ptr(gitlab.PublicVisibility), } project, _, err := git.Projects.CreateProject(p) if err != nil {