Skip to content

Commit

Permalink
pksunkara#122 Added pagination support for repo.commits.
Browse files Browse the repository at this point in the history
  • Loading branch information
kunzimariano committed Oct 6, 2014
1 parent 17413e6 commit 85df882
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions lib/octonode/repo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/octonode/repo.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class Repo

# Get the commits for a repository
# '/repos/pksunkara/hub/commits' GET
commits: (cb) ->
@client.get "/repos/#{@name}/commits", (err, s, b, h) ->
commits: (params...,cb) ->
@client.get "/repos/#{@name}/commits", params..., (err, s, b, h) ->
return cb(err) if err
if s isnt 200 then cb(new Error("Repo commits error")) else cb null, b, h

Expand Down

0 comments on commit 85df882

Please sign in to comment.