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
57754393
Commit
57754393
authored
Jul 11, 2018
by
Greg Messner
Browse files
Now uses withParam() method that takes AccessLevel as the value.
parent
d839d8ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/ProjectApi.java
View file @
57754393
...
...
@@ -1908,7 +1908,7 @@ public class ProjectApi extends AbstractApi implements Constants {
throws
GitLabApiException
{
GitLabApiForm
formData
=
new
GitLabApiForm
()
.
withParam
(
"group_id"
,
groupId
,
true
)
.
withParam
(
"group_access"
,
accessLevel
.
toValue
()
,
true
)
.
withParam
(
"group_access"
,
accessLevel
,
true
)
.
withParam
(
"expires_at"
,
expiresAt
);
post
(
Response
.
Status
.
CREATED
,
formData
,
"projects"
,
projectId
,
"share"
);
}
...
...
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