Skip to content

Commit

Permalink
Pass required ApprovelsBeforeMerge parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
marionebl committed Sep 26, 2018
1 parent 0465c5a commit 0249d96
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cmd/project_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ path refers the path on gitlab including the full group/namespace/project. If no
}

opts := gitlab.CreateProjectOptions{
Path: gitlab.String(path),
Name: gitlab.String(name),
Description: gitlab.String(desc),
Visibility: &visibility,
Path: gitlab.String(path),
Name: gitlab.String(name),
Description: gitlab.String(desc),
Visibility: &visibility,
ApprovalsBeforeMerge: gitlab.Int(0),
}
p, err := lab.ProjectCreate(&opts)
if err != nil {
Expand Down

0 comments on commit 0249d96

Please sign in to comment.