@@ -655,6 +655,8 @@ public Project createProject(Project project) throws GitLabApiException {
655
655
* repositoryStorage (optional) - Which storage shard the repository is on. Available only to admins
656
656
* approvalsBeforeMerge (optional) - How many approvers should approve merge request by default
657
657
* printingMergeRequestLinkEnabled (optional) - Show link to create/view merge request when pushing from the command line
658
+ * resolveOutdatedDiffDiscussions (optional) - Automatically resolve merge request diffs discussions on lines changed with a push
659
+ * initialize_with_readme (optional) - Initialize project with README file
658
660
*
659
661
* @param project the Project instance with the configuration for the new project
660
662
* @param importUrl the URL to import the repository from
@@ -696,7 +698,9 @@ public Project createProject(Project project, String importUrl) throws GitLabApi
696
698
.withParam ("repository_storage" , project .getRepositoryStorage ())
697
699
.withParam ("approvals_before_merge" , project .getApprovalsBeforeMerge ())
698
700
.withParam ("import_url" , importUrl )
699
- .withParam ("printing_merge_request_link_enabled" , project .getPrintingMergeRequestLinkEnabled ());
701
+ .withParam ("printing_merge_request_link_enabled" , project .getPrintingMergeRequestLinkEnabled ())
702
+ .withParam ("resolve_outdated_diff_discussions" , project .getResolveOutdatedDiffDiscussions ())
703
+ .withParam ("initialize_with_readme" , project .getInitializeWithReadme ());
700
704
701
705
if (isApiVersion (ApiVersion .V3 )) {
702
706
boolean isPublic = (project .getPublic () != null ? project .getPublic () : project .getVisibility () == Visibility .PUBLIC );
@@ -889,12 +893,14 @@ public Project createProject(String name, Integer namespaceId, String descriptio
889
893
* repositoryStorage (optional) - Which storage shard the repository is on. Available only to admins
890
894
* approvalsBeforeMerge (optional) - How many approvers should approve merge request by default
891
895
* printingMergeRequestLinkEnabled (optional) - Show link to create/view merge request when pushing from the command line
896
+ * resolveOutdatedDiffDiscussions (optional) - Automatically resolve merge request diffs discussions on lines changed with a push
892
897
*
893
898
* NOTE: The following parameters specified by the GitLab API edit project are not supported:
894
899
* import_url
895
900
* tag_list array
896
901
* avatar
897
902
* ci_config_path
903
+ * initialize_with_readme
898
904
*
899
905
* @param project the Project instance with the configuration for the new project
900
906
* @return a Project instance with the newly updated project info
@@ -936,7 +942,8 @@ public Project updateProject(Project project) throws GitLabApiException {
936
942
.withParam ("request_access_enabled" , project .getRequestAccessEnabled ())
937
943
.withParam ("repository_storage" , project .getRepositoryStorage ())
938
944
.withParam ("approvals_before_merge" , project .getApprovalsBeforeMerge ())
939
- .withParam ("printing_merge_request_link_enabled" , project .getPrintingMergeRequestLinkEnabled ());
945
+ .withParam ("printing_merge_request_link_enabled" , project .getPrintingMergeRequestLinkEnabled ())
946
+ .withParam ("resolve_outdated_diff_discussions" , project .getResolveOutdatedDiffDiscussions ());
940
947
941
948
if (isApiVersion (ApiVersion .V3 )) {
942
949
formData .withParam ("visibility_level" , project .getVisibilityLevel ());
0 commit comments