This commit is contained in:
Petr Korolev 2014-12-15 16:23:30 +02:00
parent b5778b14a0
commit 73b789ab82

View File

@ -69,8 +69,8 @@ module GitHubChangelogGenerator
pull_requests = [] pull_requests = []
page_i = 0 page_i = 0
response.each_page do |page| response.each_page do |page|
print "Fetching pull requests... #{page_i}\r"
page_i += PER_PAGE_NUMBER page_i += PER_PAGE_NUMBER
print "Fetching pull requests... #{page_i}\r"
pull_requests.concat(page) pull_requests.concat(page)
end end
@ -200,8 +200,8 @@ module GitHubChangelogGenerator
tags = [] tags = []
page_i = 0 page_i = 0
response.each_page do |page| response.each_page do |page|
print "Fetching tags... #{page_i}\r"
page_i += PER_PAGE_NUMBER page_i += PER_PAGE_NUMBER
print "Fetching tags... #{page_i}\r"
tags.concat(page) tags.concat(page)
end end
print "\r" print "\r"
@ -364,8 +364,8 @@ module GitHubChangelogGenerator
issues = [] issues = []
page_i = 0 page_i = 0
response.each_page do |page| response.each_page do |page|
print "Fetching closed issues... #{page_i}\r"
page_i += PER_PAGE_NUMBER page_i += PER_PAGE_NUMBER
print "Fetching closed issues... #{page_i}\r"
issues.concat(page) issues.concat(page)
end end