public class CommitService extends GitHubService
ACCEPT_FULL, ACCEPT_HTML, ACCEPT_PREVIEW_DRAX, ACCEPT_PREVIEW_IRONMAN, ACCEPT_PREVIEW_LOKI, ACCEPT_RAW, ACCEPT_TEXT, client| Constructor and Description |
|---|
CommitService()
Create commit service
|
CommitService(GitHubClient client)
Create commit service
|
| Modifier and Type | Method and Description |
|---|---|
CommitComment |
addComment(IRepositoryIdProvider repository,
java.lang.String sha,
CommitComment comment)
Add comment to given commit
|
RepositoryCommitCompare |
compare(IRepositoryIdProvider repository,
java.lang.String base,
java.lang.String head)
Compare base and head commits
|
CommitStatus |
createStatus(IRepositoryIdProvider repository,
java.lang.String sha,
CommitStatus status)
Create status for commit SHA-1
|
void |
deleteComment(IRepositoryIdProvider repository,
long commentId)
Delete commit comment with given id from given repository
|
CommitComment |
editComment(IRepositoryIdProvider repository,
CommitComment comment)
Edit given comment
|
CommitComment |
getComment(IRepositoryIdProvider repository,
long commentId)
Get commit comment with given id
|
java.util.List<CommitComment> |
getComments(IRepositoryIdProvider repository)
Get all comments on all commits in the given repository
|
java.util.List<CommitComment> |
getComments(IRepositoryIdProvider repository,
java.lang.String sha)
Get all comments on commit with given SHA-1
|
RepositoryCommit |
getCommit(IRepositoryIdProvider repository,
java.lang.String sha)
Get commit with given SHA-1 from given repository
|
java.util.List<RepositoryCommit> |
getCommits(IRepositoryIdProvider repository)
Get all commits in given repository
|
java.util.List<RepositoryCommit> |
getCommits(IRepositoryIdProvider repository,
java.lang.String sha,
java.lang.String path)
Get all commits in given repository beginning at an optional commit SHA-1
and affecting an optional path.
|
java.util.List<CommitStatus> |
getStatuses(IRepositoryIdProvider repository,
java.lang.String sha)
Get statuses for commit SHA-1
|
PageIterator<CommitComment> |
pageComments(IRepositoryIdProvider repository)
Page all comments on all commits in the given repository
|
PageIterator<CommitComment> |
pageComments(IRepositoryIdProvider repository,
int size)
Page all comments on all commits in the given repository
|
PageIterator<CommitComment> |
pageComments(IRepositoryIdProvider repository,
int start,
int size)
Page all comments on all commits in the given repository
|
PageIterator<CommitComment> |
pageComments(IRepositoryIdProvider repository,
java.lang.String sha)
Page comments on commit with given SHA-1
|
PageIterator<CommitComment> |
pageComments(IRepositoryIdProvider repository,
java.lang.String sha,
int size)
Page comments on commit with given SHA-1
|
PageIterator<CommitComment> |
pageComments(IRepositoryIdProvider repository,
java.lang.String sha,
int start,
int size)
Page comments on commit with given SHA-1
|
PageIterator<RepositoryCommit> |
pageCommits(IRepositoryIdProvider repository)
Page commits in given repository
|
PageIterator<RepositoryCommit> |
pageCommits(IRepositoryIdProvider repository,
int size)
Page commits in given repository
|
PageIterator<RepositoryCommit> |
pageCommits(IRepositoryIdProvider repository,
java.lang.String sha,
java.lang.String path)
Page commits in given repository
|
PageIterator<RepositoryCommit> |
pageCommits(IRepositoryIdProvider repository,
java.lang.String sha,
java.lang.String path,
int size)
Page commits in given repository
|
check, createPagedRequest, createPagedRequest, createPageIterator, createRequest, getAll, getAll, getClient, getId, verifyRepositorypublic CommitService()
public CommitService(GitHubClient client)
client - public java.util.List<RepositoryCommit> getCommits(IRepositoryIdProvider repository) throws java.io.IOException
repository - java.io.IOExceptionpublic java.util.List<RepositoryCommit> getCommits(IRepositoryIdProvider repository, java.lang.String sha, java.lang.String path) throws java.io.IOException
repository - sha - path - java.io.IOExceptionpublic PageIterator<RepositoryCommit> pageCommits(IRepositoryIdProvider repository)
repository - public PageIterator<RepositoryCommit> pageCommits(IRepositoryIdProvider repository, int size)
repository - size - public PageIterator<RepositoryCommit> pageCommits(IRepositoryIdProvider repository, java.lang.String sha, java.lang.String path)
repository - sha - path - public PageIterator<RepositoryCommit> pageCommits(IRepositoryIdProvider repository, java.lang.String sha, java.lang.String path, int size)
repository - sha - path - size - public RepositoryCommit getCommit(IRepositoryIdProvider repository, java.lang.String sha) throws java.io.IOException
repository - sha - java.io.IOExceptionpublic java.util.List<CommitComment> getComments(IRepositoryIdProvider repository, java.lang.String sha) throws java.io.IOException
repository - sha - java.io.IOExceptionpublic PageIterator<CommitComment> pageComments(IRepositoryIdProvider repository, java.lang.String sha)
repository - sha - public PageIterator<CommitComment> pageComments(IRepositoryIdProvider repository, java.lang.String sha, int size)
repository - sha - size - public PageIterator<CommitComment> pageComments(IRepositoryIdProvider repository, java.lang.String sha, int start, int size)
repository - sha - start - size - public CommitComment getComment(IRepositoryIdProvider repository, long commentId) throws java.io.IOException
repository - commentId - java.io.IOExceptionpublic CommitComment addComment(IRepositoryIdProvider repository, java.lang.String sha, CommitComment comment) throws java.io.IOException
repository - sha - comment - java.io.IOExceptionpublic CommitComment editComment(IRepositoryIdProvider repository, CommitComment comment) throws java.io.IOException
repository - comment - java.io.IOExceptionpublic void deleteComment(IRepositoryIdProvider repository, long commentId) throws java.io.IOException
repository - commentId - java.io.IOExceptionpublic RepositoryCommitCompare compare(IRepositoryIdProvider repository, java.lang.String base, java.lang.String head) throws java.io.IOException
repository - base - head - java.io.IOExceptionpublic java.util.List<CommitStatus> getStatuses(IRepositoryIdProvider repository, java.lang.String sha) throws java.io.IOException
repository - sha - java.io.IOExceptionpublic CommitStatus createStatus(IRepositoryIdProvider repository, java.lang.String sha, CommitStatus status) throws java.io.IOException
repository - sha - status - java.io.IOExceptionpublic java.util.List<CommitComment> getComments(IRepositoryIdProvider repository) throws java.io.IOException
repository - java.io.IOExceptionpublic PageIterator<CommitComment> pageComments(IRepositoryIdProvider repository)
repository - public PageIterator<CommitComment> pageComments(IRepositoryIdProvider repository, int size)
repository - size - public PageIterator<CommitComment> pageComments(IRepositoryIdProvider repository, int start, int size)
repository - start - size -