Adding pagination to getCommits