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
92afc5fa
Commit
92afc5fa
authored
Aug 26, 2017
by
Greg Messner
Browse files
Chaged response status to CREATED for addComment() (#67).
parent
7280af74
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/CommitsApi.java
View file @
92afc5fa
...
...
@@ -221,7 +221,7 @@ public class CommitsApi extends AbstractApi {
.
withParam
(
"path"
,
path
)
.
withParam
(
"line"
,
line
)
.
withParam
(
"line_type"
,
lineType
);
Response
response
=
post
(
Response
.
Status
.
OK
,
formData
,
"projects"
,
projectId
,
"repository"
,
"commits"
,
sha
,
"comments"
);
Response
response
=
post
(
Response
.
Status
.
CREATED
,
formData
,
"projects"
,
projectId
,
"repository"
,
"commits"
,
sha
,
"comments"
);
return
(
response
.
readEntity
(
Comment
.
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