commits.getClient().setOAuth2Token(token);
else
commits.getClient().setCredentials(username, password);
final List<Commit> ret = new ArrayList<Commit>();
RepositoryId repositoryId = new RepositoryId(owner, repository);
for (RepositoryCommit curCommit : commits.pageCommits(repositoryId, 30)
.next()) {
if (curCommit.getCommit().getCommitter().getDate().after(oneDayAgo)) {
RepositoryCommit fullCommit = fullCommits.get(curCommit
.getSha());
if (fullCommit == null) {