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
d63b0aa0
Commit
d63b0aa0
authored
Jan 17, 2020
by
sean-madden
Committed by
Greg Messner
Jan 17, 2020
Browse files
Fix typo, changed getApprovalsConfiguration to setApprovalsConfiguration (#498)
parent
e861403f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/ProjectApi.java
View file @
d63b0aa0
...
@@ -3095,7 +3095,7 @@ public class ProjectApi extends AbstractApi implements Constants {
...
@@ -3095,7 +3095,7 @@ public class ProjectApi extends AbstractApi implements Constants {
* @return a ProjectApprovalsConfig instance with the project's approvals configuration
* @return a ProjectApprovalsConfig instance with the project's approvals configuration
* @throws GitLabApiException if any exception occurs
* @throws GitLabApiException if any exception occurs
*/
*/
public
ProjectApprovalsConfig
g
etApprovalsConfiguration
(
Object
projectIdOrPath
,
ProjectApprovalsConfig
config
)
throws
GitLabApiException
{
public
ProjectApprovalsConfig
s
etApprovalsConfiguration
(
Object
projectIdOrPath
,
ProjectApprovalsConfig
config
)
throws
GitLabApiException
{
GitLabApiForm
formData
=
config
.
getForm
();
GitLabApiForm
formData
=
config
.
getForm
();
Response
response
=
post
(
Response
.
Status
.
OK
,
formData
,
"projects"
,
getProjectIdOrPath
(
projectIdOrPath
),
"approvals"
);
Response
response
=
post
(
Response
.
Status
.
OK
,
formData
,
"projects"
,
getProjectIdOrPath
(
projectIdOrPath
),
"approvals"
);
return
(
response
.
readEntity
(
ProjectApprovalsConfig
.
class
));
return
(
response
.
readEntity
(
ProjectApprovalsConfig
.
class
));
...
...
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