@Override void wrapUp(GitHub root) { super.wrapUp(root); repository.wrap(root); issue.wrap(repository); comment.wrapUp(issue); } }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository != null) { repository.wrap(root); issue.wrap(repository); } else { issue.wrap(root); } comment.wrapUp(issue); } }
@Override void wrapUp(GitHub root) { super.wrapUp(root); if (repository != null) { repository.wrap(root); issue.wrap(repository); } else { issue.wrap(root); } comment.wrapUp(issue); } }
/** * Updates the issue by adding a comment. */ public GHIssueComment comment(String message) throws IOException { GHIssueComment r = new Requester(root).with("body",message).to(getIssuesApiRoute() + "/comments", GHIssueComment.class); return r.wrapUp(this); }
/** * Updates the issue by adding a comment. * * @return * Newly posted comment. */ @WithBridgeMethods(void.class) public GHIssueComment comment(String message) throws IOException { GHIssueComment r = new Requester(root).with("body",message).to(getIssuesApiRoute() + "/comments", GHIssueComment.class); return r.wrapUp(this); }
/** * Updates the issue by adding a comment. * * @return * Newly posted comment. */ @WithBridgeMethods(void.class) public GHIssueComment comment(String message) throws IOException { GHIssueComment r = new Requester(root).with("body",message).to(getIssuesApiRoute() + "/comments", GHIssueComment.class); return r.wrapUp(this); }