mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-04 08:21:23 +00:00
added support for the issue comments
This commit is contained in:
@@ -116,6 +116,13 @@ public class GHIssue {
|
||||
new Poster(root).withCredential().to(getApiRoute("reopen"));
|
||||
}
|
||||
|
||||
/**
|
||||
* Obtains all the comments associated with this issue.
|
||||
*/
|
||||
public List<GHIssueComment> getComments() throws IOException {
|
||||
return root.retrieve(getApiRoute("comments"), JsonIssueComments.class).wrap(this);
|
||||
}
|
||||
|
||||
private String getApiRoute(String verb) {
|
||||
return "/issues/"+verb+"/"+owner.getOwnerName()+"/"+owner.getName()+"/"+number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user