java.lang.Object
org.kohsuke.github.GHCommitQueryBuilder
Builds up query for listing commits.
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")) { ... }
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGItHub login or email address by which to filter by commit author.Specifies the SHA1 commit / tag / branch / etc to start listing commits from.list()
Lists up the commits with the criteria built so far.pageSize
(int pageSize) Page size gh commit query builder.Only commits containing this file path will be returned.since
(long timestamp) Only commits after this date will be returned.Only commits after this date will be returned.until
(long timestamp) Only commits before this date will be returned.Only commits before this date will be returned.
-
Method Details
-
author
GItHub login or email address by which to filter by commit author.- Parameters:
author
- the author- Returns:
- the gh commit query builder
-
path
Only commits containing this file path will be returned.- Parameters:
path
- the path- Returns:
- the gh commit query builder
-
from
Specifies the SHA1 commit / tag / branch / etc to start listing commits from.- Parameters:
ref
- the ref- Returns:
- the gh commit query builder
-
pageSize
Page size gh commit query builder.- Parameters:
pageSize
- the page size- Returns:
- the gh commit query builder
-
since
Only commits after this date will be returned.- Parameters:
dt
- the dt- Returns:
- the gh commit query builder
-
since
Only commits after this date will be returned.- Parameters:
timestamp
- the timestamp- Returns:
- the gh commit query builder
-
until
Only commits before this date will be returned.- Parameters:
dt
- the dt- Returns:
- the gh commit query builder
-
until
Only commits before this date will be returned.- Parameters:
timestamp
- the timestamp- Returns:
- the gh commit query builder
-
list
Lists up the commits with the criteria built so far.- Returns:
- the paged iterable
-