diff --git a/lib/github_changelog_generator/fetcher.rb b/lib/github_changelog_generator/fetcher.rb index b6175bb..fa81112 100644 --- a/lib/github_changelog_generator/fetcher.rb +++ b/lib/github_changelog_generator/fetcher.rb @@ -163,10 +163,13 @@ Make sure, that you push tags to remote repo via 'git push --tags'".yellow issues_slice.each do |issue| threads << Thread.new do begin - obj = @github.issues.events.list user: @options[:user], - repo: @options[:project], - issue_number: issue["number"] - issue[:events] = obj.body + response = @github.issues.events.list user: @options[:user], + repo: @options[:project], + issue_number: issue["number"] + issue[:events] = [] + response.each_page do |page| + issue[:events].concat(page) + end rescue Helper.log.warn GH_RATE_LIMIT_EXCEEDED_MSG.yellow end