@@ -590,6 +590,7 @@ public Project createProject(Project project) throws GitLabApiException {
590
590
* visibility (optional) - Limit by visibility public, internal, or private
591
591
* visibilityLevel (optional)
592
592
* issuesEnabled (optional) - Enable issues for this project
593
+ * mergeMethod (optional) - Set the merge method used
593
594
* mergeRequestsEnabled (optional) - Enable merge requests for this project
594
595
* wikiEnabled (optional) - Enable wiki for this project
595
596
* snippetsEnabled (optional) - Enable snippets for this project
@@ -629,6 +630,7 @@ public Project createProject(Project project, String importUrl) throws GitLabApi
629
630
.withParam ("default_branch" , project .getDefaultBranch ())
630
631
.withParam ("description" , project .getDescription ())
631
632
.withParam ("issues_enabled" , project .getIssuesEnabled ())
633
+ .withParam ("merge_method" , project .getMergeMethod ())
632
634
.withParam ("merge_requests_enabled" , project .getMergeRequestsEnabled ())
633
635
.withParam ("jobs_enabled" , project .getJobsEnabled ())
634
636
.withParam ("wiki_enabled" , project .getWikiEnabled ())
@@ -822,6 +824,7 @@ public Project createProject(String name, Integer namespaceId, String descriptio
822
824
* description (optional) - short project description
823
825
* visibility (optional) - Limit by visibility public, internal, or private
824
826
* issuesEnabled (optional) - Enable issues for this project
827
+ * mergeMethod (optional) - Set the merge method used
825
828
* mergeRequestsEnabled (optional) - Enable merge requests for this project
826
829
* wikiEnabled (optional) - Enable wiki for this project
827
830
* snippetsEnabled (optional) - Enable snippets for this project
@@ -869,6 +872,7 @@ public Project updateProject(Project project) throws GitLabApiException {
869
872
.withParam ("default_branch" , project .getDefaultBranch ())
870
873
.withParam ("description" , project .getDescription ())
871
874
.withParam ("issues_enabled" , project .getIssuesEnabled ())
875
+ .withParam ("merge_method" , project .getMergeMethod ())
872
876
.withParam ("merge_requests_enabled" , project .getMergeRequestsEnabled ())
873
877
.withParam ("jobs_enabled" , project .getJobsEnabled ())
874
878
.withParam ("wiki_enabled" , project .getWikiEnabled ())
0 commit comments