Package com.jcabi.github
Interface PullComments
@Immutable
public interface PullComments
GitHub pull comments.
- Since:
- 0.8
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionget(int number) Get specific pull comment by number.Iterate all pull comments for a pull request.Iterate all pull comments for this repo.Post a new pull comment.pull()Pull we're in.voidremove(int number) Removes a pull comment by ID.Create a new comment as a reply to an existing pull comment.
-
Method Details
-
pull
Pull pull()Pull we're in.- Returns:
- Pull
-
get
Get specific pull comment by number.- Parameters:
number- Pull comment number- Returns:
- Pull comment
- See Also:
-
iterate
Iterate all pull comments for this repo.- Parameters:
params- Iterating parameters, as specified by API- Returns:
- Iterable of pull comments
- See Also:
-
iterate
Iterate all pull comments for a pull request.- Parameters:
number- Pull comment numberparams- Iterating parameters, as specified by API- Returns:
- Iterable of pull comments
- See Also:
-
post
Post a new pull comment.- Parameters:
body- Body of itcommit- Commit ID (SHA) of itpath- Path of the file to comment onposition- Line index in the diff to comment on- Returns:
- PullComment just created
- Throws:
IOException- If there is any I/O problem- See Also:
- Suppressed Checkstyle violations:
- ParameterNumberCheck (7 lines)
-
reply
Create a new comment as a reply to an existing pull comment.- Parameters:
body- Body of itcomment- Commit ID (SHA) of it- Returns:
- PullComment just created
- Throws:
IOException- If there is any I/O problem- See Also:
-
remove
Removes a pull comment by ID.- Parameters:
number- The ID of the pull comment to delete.- Throws:
IOException- If there is any I/O problem.
-