Skip to content

Commit

Permalink
Fix Octokit pagination
Browse files Browse the repository at this point in the history
We were using the reader instead of the writer for it

(cherry picked from commit 7d0fe2c)
  • Loading branch information
waiting-for-dev committed Dec 29, 2022
1 parent 4bf9c0b commit ff0a60e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev_tools/lib/solidus/release_drafter/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ReleaseDrafter
class Client
def initialize(github_token:, repository:)
@repository = repository
@client = Octokit::Client.new(access_token: github_token).tap { |c| c.auto_paginate }
@client = Octokit::Client.new(access_token: github_token).tap { |c| c.auto_paginate = true }
end

def fetch_draft(tag:)
Expand Down

0 comments on commit ff0a60e

Please sign in to comment.