org.kohsuke.github
Class GHCommitQueryBuilder

java.lang.Object
  extended by org.kohsuke.github.GHCommitQueryBuilder

public class GHCommitQueryBuilder
extends Object

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:
GHRepository.queryCommits()

Method Summary
 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)
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

author

public GHCommitQueryBuilder author(String author)
GItHub login or email address by which to filter by commit author.


path

public GHCommitQueryBuilder path(String path)
Only commits containing this file path will be returned.


from

public GHCommitQueryBuilder from(String ref)
Specifies the SHA1 commit / tag / branch / etc to start listing commits from.


pageSize

public GHCommitQueryBuilder pageSize(int pageSize)

since

public GHCommitQueryBuilder since(Date dt)
Only commits after this date will be returned


since

public GHCommitQueryBuilder since(long timestamp)
Only commits after this date will be returned


until

public GHCommitQueryBuilder until(Date dt)
Only commits before this date will be returned


until

public GHCommitQueryBuilder until(long timestamp)
Only commits before this date will be returned


list

public PagedIterable<GHCommit> list()
Lists up the commits with the criteria built so far.



Copyright © 2014. All rights reserved.