Package com.jcabi.github
Interface Comments
- All Known Implementing Classes:
SfComments
@Immutable
public interface Comments
GitHub comments.
Use this class to get access to all comments in an issue, for example:
issue = // ... get it somewhere
Comments comments = issue.comments();
Comment comment = comments.post("Hi, how are you?");- Since:
- 0.1
- See Also:
-
Method Summary
-
Method Details
-
issue
Issue issue()The issue we're in.- Returns:
- Issue
-
get
Get comment by number.- Parameters:
number- Comment number- Returns:
- Comment
- See Also:
-
iterate
Iterate them all.- Parameters:
since- Since when? Just givenew Date(0)if you want all comments.- Returns:
- All comments
- See Also:
-
post
Post new comment.- Parameters:
text- Text of comment to post in Markdown format- Returns:
- Comment
- Throws:
IOException- If there is any I/O problem- See Also:
-