@@ -655,6 +655,8 @@ public Project createProject(Project project) throws GitLabApiException {
655655 * repositoryStorage (optional) - Which storage shard the repository is on. Available only to admins
656656 * approvalsBeforeMerge (optional) - How many approvers should approve merge request by default
657657 * 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
658660 *
659661 * @param project the Project instance with the configuration for the new project
660662 * @param importUrl the URL to import the repository from
@@ -696,7 +698,9 @@ public Project createProject(Project project, String importUrl) throws GitLabApi
696698 .withParam ("repository_storage" , project .getRepositoryStorage ())
697699 .withParam ("approvals_before_merge" , project .getApprovalsBeforeMerge ())
698700 .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 ());
700704
701705 if (isApiVersion (ApiVersion .V3 )) {
702706 boolean isPublic = (project .getPublic () != null ? project .getPublic () : project .getVisibility () == Visibility .PUBLIC );
@@ -889,12 +893,14 @@ public Project createProject(String name, Integer namespaceId, String descriptio
889893 * repositoryStorage (optional) - Which storage shard the repository is on. Available only to admins
890894 * approvalsBeforeMerge (optional) - How many approvers should approve merge request by default
891895 * 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
892897 *
893898 * NOTE: The following parameters specified by the GitLab API edit project are not supported:
894899 * import_url
895900 * tag_list array
896901 * avatar
897902 * ci_config_path
903+ * initialize_with_readme
898904 *
899905 * @param project the Project instance with the configuration for the new project
900906 * @return a Project instance with the newly updated project info
@@ -936,7 +942,8 @@ public Project updateProject(Project project) throws GitLabApiException {
936942 .withParam ("request_access_enabled" , project .getRequestAccessEnabled ())
937943 .withParam ("repository_storage" , project .getRepositoryStorage ())
938944 .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 ());
940947
941948 if (isApiVersion (ApiVersion .V3 )) {
942949 formData .withParam ("visibility_level" , project .getVisibilityLevel ());
0 commit comments