Skip to content

Commit 21b7ce9

Browse files
mdeknowisgmessner
authored andcommitted
Use correct visibility value in addGroup(Group) (#262)
1 parent 333f1e5 commit 21b7ce9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/gitlab4j/api/GroupApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ public Group addGroup(Group group) throws GitLabApiException {
347347
.withParam("name", group.getName())
348348
.withParam("path", group.getPath())
349349
.withParam("description", group.getDescription())
350-
.withParam("visibility", group.getDescription())
350+
.withParam("visibility", group.getVisibility())
351351
.withParam("lfs_enabled", group.getLfsEnabled())
352352
.withParam("request_access_enabled", group.getRequestAccessEnabled())
353353
.withParam("parent_id", isApiVersion(ApiVersion.V3) ? null : group.getParentId());

0 commit comments

Comments
 (0)