@@ -818,15 +818,15 @@ public Project createProject(Project project, String importUrl) throws GitLabApi
818
818
if (isApiVersion (ApiVersion .V3 )) {
819
819
boolean isPublic = (project .getPublic () != null ? project .getPublic () : project .getVisibility () == Visibility .PUBLIC );
820
820
formData .withParam ("public" , isPublic );
821
-
821
+
822
822
if (project .getTagList () != null && !project .getTagList ().isEmpty ()) {
823
823
throw new IllegalArgumentException ("GitLab API v3 does not support tag lists when creating projects" );
824
824
}
825
825
} else {
826
826
Visibility visibility = (project .getVisibility () != null ? project .getVisibility () :
827
827
project .getPublic () == Boolean .TRUE ? Visibility .PUBLIC : null );
828
828
formData .withParam ("visibility" , visibility );
829
-
829
+
830
830
if (project .getTagList () != null && !project .getTagList ().isEmpty ()) {
831
831
formData .withParam ("tag_list" , String .join ("," , project .getTagList ()));
832
832
}
@@ -1057,15 +1057,15 @@ public Project updateProject(Project project) throws GitLabApiException {
1057
1057
formData .withParam ("visibility_level" , project .getVisibilityLevel ());
1058
1058
boolean isPublic = (project .getPublic () != null ? project .getPublic () : project .getVisibility () == Visibility .PUBLIC );
1059
1059
formData .withParam ("public" , isPublic );
1060
-
1060
+
1061
1061
if (project .getTagList () != null && !project .getTagList ().isEmpty ()) {
1062
1062
throw new IllegalArgumentException ("GitLab API v3 does not support tag lists when updating projects" );
1063
1063
}
1064
1064
} else {
1065
1065
Visibility visibility = (project .getVisibility () != null ? project .getVisibility () :
1066
1066
project .getPublic () == Boolean .TRUE ? Visibility .PUBLIC : null );
1067
1067
formData .withParam ("visibility" , visibility );
1068
-
1068
+
1069
1069
if (project .getTagList () != null && !project .getTagList ().isEmpty ()) {
1070
1070
formData .withParam ("tag_list" , String .join ("," , project .getTagList ()));
1071
1071
}
@@ -1090,7 +1090,7 @@ public void deleteProject(Object projectIdOrPath) throws GitLabApiException {
1090
1090
1091
1091
/**
1092
1092
* Forks a project into the user namespace of the authenticated user or the one provided.
1093
- * The forking operation for a project is asynchronous and is completed in a background job.
1093
+ * The forking operation for a project is asynchronous and is completed in a background job.
1094
1094
* The request will return immediately.
1095
1095
*
1096
1096
* <pre><code>POST /projects/:id/fork</code></pre>
@@ -1109,7 +1109,7 @@ public Project forkProject(Object projectIdOrPath, String namespace) throws GitL
1109
1109
1110
1110
/**
1111
1111
* Forks a project into the user namespace of the authenticated user or the one provided.
1112
- * The forking operation for a project is asynchronous and is completed in a background job.
1112
+ * The forking operation for a project is asynchronous and is completed in a background job.
1113
1113
* The request will return immediately.
1114
1114
*
1115
1115
* <pre><code>POST /projects/:id/fork</code></pre>
@@ -1130,7 +1130,7 @@ public Project forkProject(Object projectIdOrPath, Integer namespaceId) throws G
1130
1130
* Create a forked from/to relation between existing projects.
1131
1131
*
1132
1132
* <pre><code>POST /projects/:id/fork/:forkFromId</code></pre>
1133
- *
1133
+ *
1134
1134
*
1135
1135
* @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
1136
1136
* @param forkedFromId the ID of the project that was forked from
@@ -1455,7 +1455,7 @@ public List<ProjectUser> getProjectUsers(Object projectIdOrPath, String search)
1455
1455
}
1456
1456
1457
1457
/**
1458
- * Get a Pager of project users matching the specified search string. This Pager includes
1458
+ * Get a Pager of project users matching the specified search string. This Pager includes
1459
1459
* all project members and all users assigned to project parent groups.
1460
1460
*
1461
1461
* <pre><code>GET /projects/:id/users</code></pre>
@@ -1644,7 +1644,7 @@ public Optional<ProjectHook> getOptionalHook(Object projectIdOrPath, Integer hoo
1644
1644
* @return the added ProjectHook instance
1645
1645
* @throws GitLabApiException if any exception occurs
1646
1646
*/
1647
- public ProjectHook addHook (String projectName , String url , ProjectHook enabledHooks , boolean enableSslVerification , String secretToken )
1647
+ public ProjectHook addHook (String projectName , String url , ProjectHook enabledHooks , boolean enableSslVerification , String secretToken )
1648
1648
throws GitLabApiException {
1649
1649
1650
1650
if (projectName == null ) {
@@ -2266,9 +2266,9 @@ public void deletePushRules(Object projectIdOrPath) throws GitLabApiException {
2266
2266
2267
2267
/**
2268
2268
* Get a list of projects that were forked from the specified project.
2269
- *
2269
+ *
2270
2270
* <pre><code>GET /projects/:id/forks</code></pre>
2271
- *
2271
+ *
2272
2272
* @param projectIdOrPath projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance, required
2273
2273
* @return a List of forked projects
2274
2274
* @throws GitLabApiException if any exception occurs
@@ -2382,7 +2382,7 @@ public Project transferProject(Object projectIdOrPath, String namespace) throws
2382
2382
}
2383
2383
2384
2384
/**
2385
- * Uploads and sets the project avatar for the specified project.
2385
+ * Uploads and sets the project avatar for the specified project.
2386
2386
*
2387
2387
* <pre><code>PUT /projects/:id/uploads</code></pre>
2388
2388
*
0 commit comments