@Immutable public interface PullComments
| Modifier and Type | Method and Description |
|---|---|
PullComment |
get(int number)
Get specific pull comment by number.
|
Iterable<PullComment> |
iterate(int number,
Map<String,String> params)
Iterate all pull comments for a pull request.
|
Iterable<PullComment> |
iterate(Map<String,String> params)
Iterate all pull comments for this repo.
|
PullComment |
post(String body,
String commit,
String path,
int position)
Post a new pull comment.
|
Pull |
pull()
Pull we're in.
|
void |
remove(int number)
Removes a pull comment by ID.
|
PullComment |
reply(String body,
int comment)
Create a new comment as a reply to an existing pull comment.
|
@NotNull(message="pull is never NULL") Pull pull()
@NotNull(message="PullComment is never NULL") PullComment get(int number)
number - Pull comment number@NotNull(message="iterable is never NULL") Iterable<PullComment> iterate(@NotNull(message="map of params can\'t be NULL") Map<String,String> params)
params - Iterating parameters, as specified by API@NotNull(message="iterable is never NULL") Iterable<PullComment> iterate(int number, @NotNull(message="map of params can\'t be NULL") Map<String,String> params)
number - Pull comment numberparams - Iterating parameters, as specified by API@NotNull(message="PullComment is never NULL") PullComment post(@NotNull(message="Comment body is never NULL") String body, @NotNull(message="commit ID is never NULL") String commit, @NotNull(message="path body is never NULL") String path, @NotNull(message="position is never NULL") int position) throws IOException
body - Body of itcommit - Commit ID (SHA) of itpath - Path of the file to comment onposition - Line index in the diff to comment onIOException - If there is any I/O problem@NotNull(message="PullComment is never NULL") PullComment reply(@NotNull(message="Comment body is never NULL") String body, @NotNull(message="comment ID is never NULL") int comment) throws IOException
body - Body of itcomment - Commit ID (SHA) of itIOException - If there is any I/O problemvoid remove(int number)
throws IOException
number - The ID of the pull comment to delete.IOException - If there is any I/O problem.Copyright © 2012–2014 jcabi.com. All rights reserved.