Skip to content

Commit

Permalink
fix: init readme when creat repo
Browse files Browse the repository at this point in the history
Co-authored-by: Eko Simanjuntak <[email protected]>
  • Loading branch information
walbertus and ecojuntak committed Nov 19, 2021
1 parent 7983093 commit 32b4c21
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkg/gitlab/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ type project struct {
}

func (p *project) CreateProject(name string, parentID int, visibility gl.VisibilityValue) (*gl.Project, error) {
initializeWithReadme := true
project, _, err := p.client.Projects.CreateProject(&gl.CreateProjectOptions{
Name: &name,
NamespaceID: &parentID,
Path: nil,
Visibility: gl.Visibility(visibility),
Name: &name,
NamespaceID: &parentID,
Path: nil,
Visibility: gl.Visibility(visibility),
InitializeWithReadme: &initializeWithReadme,
})
return project, err
}
Expand Down

0 comments on commit 32b4c21

Please sign in to comment.