/** * Page pull request commit comments * * @param repository * @param id * @return iterator over pages of commit comments */ public PageIterator<CommitComment> pageComments( IRepositoryIdProvider repository, int id) { return pageComments(repository, id, PAGE_SIZE); }
/** * Page pull request commit comments * * @param repository * @param id * @param size * @return iterator over pages of commit comments */ public PageIterator<CommitComment> pageComments( IRepositoryIdProvider repository, int id, int size) { return pageComments(repository, id, PAGE_FIRST, size); }
/** * Get all comments on commits in given pull request * * @param repository * @param id * @return non-null list of comments * @throws IOException */ public List<CommitComment> getComments(IRepositoryIdProvider repository, int id) throws IOException { return getAll(pageComments(repository, id)); }