@@ -751,7 +751,8 @@ public Project createProject(Project project, String importUrl) throws GitLabApi
751
751
.withParam ("import_url" , importUrl )
752
752
.withParam ("printing_merge_request_link_enabled" , project .getPrintingMergeRequestLinkEnabled ())
753
753
.withParam ("resolve_outdated_diff_discussions" , project .getResolveOutdatedDiffDiscussions ())
754
- .withParam ("initialize_with_readme" , project .getInitializeWithReadme ());
754
+ .withParam ("initialize_with_readme" , project .getInitializeWithReadme ())
755
+ .withParam ("packages_enabled" , project .getPackagesEnabled ());
755
756
756
757
if (isApiVersion (ApiVersion .V3 )) {
757
758
boolean isPublic = (project .getPublic () != null ? project .getPublic () : project .getVisibility () == Visibility .PUBLIC );
@@ -994,7 +995,8 @@ public Project updateProject(Project project) throws GitLabApiException {
994
995
.withParam ("repository_storage" , project .getRepositoryStorage ())
995
996
.withParam ("approvals_before_merge" , project .getApprovalsBeforeMerge ())
996
997
.withParam ("printing_merge_request_link_enabled" , project .getPrintingMergeRequestLinkEnabled ())
997
- .withParam ("resolve_outdated_diff_discussions" , project .getResolveOutdatedDiffDiscussions ());
998
+ .withParam ("resolve_outdated_diff_discussions" , project .getResolveOutdatedDiffDiscussions ())
999
+ .withParam ("packages_enabled" , project .getPackagesEnabled ());
998
1000
999
1001
if (isApiVersion (ApiVersion .V3 )) {
1000
1002
formData .withParam ("visibility_level" , project .getVisibilityLevel ());
0 commit comments