Skip to content

Commit

Permalink
Merge pull request #1 from glasnt/master
Browse files Browse the repository at this point in the history
Use octokit's auto pagination
  • Loading branch information
mpalmer committed Mar 5, 2015
2 parents 4f78e0b + 1b9a9be commit 2db5c33
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/github-release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ def run

private
def api
@api ||= Octokit::Client.new(:access_token => token)
@api.auto_paginate = true
@api
@api ||= Octokit::Client.new(:access_token => token, :auto_paginate => true)
end

def token
Expand Down

0 comments on commit 2db5c33

Please sign in to comment.