public class GHCommitQueryBuilder extends Object
Call various methods that set the filter criteria, then list() method to actually list up the commit.
GHRepository r = ...;
for (GHCommit c : r.queryCommits().since(x).until(y).author("kohsuke")) {
...
}
GHRepository#queryCommits()| Modifier and Type | Method and Description |
|---|---|
GHCommitQueryBuilder |
author(String author)
GItHub login or email address by which to filter by commit author.
|
GHCommitQueryBuilder |
from(String ref)
Specifies the SHA1 commit / tag / branch / etc to start listing commits from.
|
PagedIterable<GHCommit> |
list()
Lists up the commits with the criteria built so far.
|
GHCommitQueryBuilder |
pageSize(int pageSize)
Page size gh commit query builder.
|
GHCommitQueryBuilder |
path(String path)
Only commits containing this file path will be returned.
|
GHCommitQueryBuilder |
since(Date dt)
Only commits after this date will be returned
|
GHCommitQueryBuilder |
since(long timestamp)
Only commits after this date will be returned
|
GHCommitQueryBuilder |
until(Date dt)
Only commits before this date will be returned
|
GHCommitQueryBuilder |
until(long timestamp)
Only commits before this date will be returned
|
public GHCommitQueryBuilder author(String author)
author - the authorpublic GHCommitQueryBuilder path(String path)
path - the pathpublic GHCommitQueryBuilder from(String ref)
ref - the refpublic GHCommitQueryBuilder pageSize(int pageSize)
pageSize - the page sizepublic GHCommitQueryBuilder since(Date dt)
dt - the dtpublic GHCommitQueryBuilder since(long timestamp)
timestamp - the timestamppublic GHCommitQueryBuilder until(Date dt)
dt - the dtpublic GHCommitQueryBuilder until(long timestamp)
timestamp - the timestamppublic PagedIterable<GHCommit> list()
Copyright © 2020. All rights reserved.