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
8eb0e8e3
Commit
8eb0e8e3
authored
Jan 04, 2020
by
derekyyyan
Committed by
Greg Messner
Jan 04, 2020
Browse files
Fix typo (#486) (#492)
parent
1c7785a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/DiscussionsApi.java
View file @
8eb0e8e3
...
@@ -627,7 +627,7 @@ public class DiscussionsApi extends AbstractApi {
...
@@ -627,7 +627,7 @@ public class DiscussionsApi extends AbstractApi {
.
withParam
(
"created_at"
,
createdAt
);
.
withParam
(
"created_at"
,
createdAt
);
Response
response
=
post
(
Response
.
Status
.
CREATED
,
formData
,
Response
response
=
post
(
Response
.
Status
.
CREATED
,
formData
,
"projects"
,
getProjectIdOrPath
(
projectIdOrPath
),
"projects"
,
getProjectIdOrPath
(
projectIdOrPath
),
"mege_requests"
,
mergeRequestIid
,
"discussions"
,
discussionId
,
"notes"
);
"me
r
ge_requests"
,
mergeRequestIid
,
"discussions"
,
discussionId
,
"notes"
);
return
(
response
.
readEntity
(
Note
.
class
));
return
(
response
.
readEntity
(
Note
.
class
));
}
}
...
@@ -651,7 +651,7 @@ public class DiscussionsApi extends AbstractApi {
...
@@ -651,7 +651,7 @@ public class DiscussionsApi extends AbstractApi {
GitLabApiForm
formData
=
new
GitLabApiForm
().
withParam
(
"body"
,
body
).
withParam
(
"resolved"
,
resolved
);
GitLabApiForm
formData
=
new
GitLabApiForm
().
withParam
(
"body"
,
body
).
withParam
(
"resolved"
,
resolved
);
Response
response
=
this
.
putWithFormData
(
Response
.
Status
.
OK
,
formData
,
Response
response
=
this
.
putWithFormData
(
Response
.
Status
.
OK
,
formData
,
"projects"
,
getProjectIdOrPath
(
projectIdOrPath
),
"projects"
,
getProjectIdOrPath
(
projectIdOrPath
),
"mege_requests"
,
mergeRequestIid
,
"discussions"
,
discussionId
,
"notes"
,
noteId
);
"me
r
ge_requests"
,
mergeRequestIid
,
"discussions"
,
discussionId
,
"notes"
,
noteId
);
return
(
response
.
readEntity
(
Note
.
class
));
return
(
response
.
readEntity
(
Note
.
class
));
}
}
...
@@ -669,6 +669,6 @@ public class DiscussionsApi extends AbstractApi {
...
@@ -669,6 +669,6 @@ public class DiscussionsApi extends AbstractApi {
public
void
deleteMergeRequestThreadNote
(
Object
projectIdOrPath
,
Integer
mergeRequestIid
,
public
void
deleteMergeRequestThreadNote
(
Object
projectIdOrPath
,
Integer
mergeRequestIid
,
String
discussionId
,
Integer
noteId
)
throws
GitLabApiException
{
String
discussionId
,
Integer
noteId
)
throws
GitLabApiException
{
delete
(
Response
.
Status
.
OK
,
null
,
"projects"
,
getProjectIdOrPath
(
projectIdOrPath
),
delete
(
Response
.
Status
.
OK
,
null
,
"projects"
,
getProjectIdOrPath
(
projectIdOrPath
),
"mege_requests"
,
mergeRequestIid
,
"discussions"
,
discussionId
,
"notes"
,
noteId
);
"me
r
ge_requests"
,
mergeRequestIid
,
"discussions"
,
discussionId
,
"notes"
,
noteId
);
}
}
}
}
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