Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
85631bbb
Commit
85631bbb
authored
Jun 15, 2019
by
Greg Messner
Browse files
Fixed addGroup() param validation.
parent
f4c0750e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/GroupApi.java
View file @
85631bbb
...
...
@@ -480,8 +480,8 @@ public class GroupApi extends AbstractApi {
public
Group
addGroup
(
Group
group
)
throws
GitLabApiException
{
Form
formData
=
new
GitLabApiForm
()
.
withParam
(
"name"
,
group
.
getName
())
.
withParam
(
"path"
,
group
.
getPath
())
.
withParam
(
"name"
,
group
.
getName
()
,
true
)
.
withParam
(
"path"
,
group
.
getPath
()
,
true
)
.
withParam
(
"description"
,
group
.
getDescription
())
.
withParam
(
"visibility"
,
group
.
getVisibility
())
.
withParam
(
"lfs_enabled"
,
group
.
getLfsEnabled
())
...
...
@@ -510,8 +510,8 @@ public class GroupApi extends AbstractApi {
Boolean
lfsEnabled
,
Boolean
requestAccessEnabled
,
Integer
parentId
)
throws
GitLabApiException
{
Form
formData
=
new
GitLabApiForm
()
.
withParam
(
"name"
,
name
)
.
withParam
(
"path"
,
path
)
.
withParam
(
"name"
,
name
,
true
)
.
withParam
(
"path"
,
path
,
true
)
.
withParam
(
"description"
,
description
)
.
withParam
(
"visibility"
,
visibility
)
.
withParam
(
"lfs_enabled"
,
lfsEnabled
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment