Prettify output
This commit is contained in:
parent
f668aedafc
commit
e6f12421ff
|
@ -67,7 +67,8 @@ module GitHubChangelogGenerator
|
|||
page_i = 0
|
||||
response.each_page do |page|
|
||||
page_i += PER_PAGE_NUMBER
|
||||
print "Fetching pull requests... #{page_i}\r"
|
||||
count_pages = response.count_pages
|
||||
print "Fetching pull requests... #{page_i}/#{count_pages * PER_PAGE_NUMBER}\r"
|
||||
pull_requests.concat(page)
|
||||
end
|
||||
print " \r"
|
||||
|
@ -203,9 +204,10 @@ module GitHubChangelogGenerator
|
|||
|
||||
tags = []
|
||||
page_i = 0
|
||||
count_pages = response.count_pages
|
||||
response.each_page do |page|
|
||||
page_i += PER_PAGE_NUMBER
|
||||
print "Fetching tags... #{page_i}\r"
|
||||
print "Fetching tags... #{page_i}/#{count_pages * PER_PAGE_NUMBER}\r"
|
||||
tags.concat(page)
|
||||
end
|
||||
print " \r"
|
||||
|
@ -421,13 +423,18 @@ module GitHubChangelogGenerator
|
|||
|
||||
issues = []
|
||||
page_i = 0
|
||||
count_pages = response.count_pages
|
||||
response.each_page do |page|
|
||||
page_i += PER_PAGE_NUMBER
|
||||
print "Fetching closed issues... #{page_i}\r"
|
||||
print "Fetching issues... #{page_i}/#{count_pages * PER_PAGE_NUMBER}\r"
|
||||
issues.concat(page)
|
||||
end
|
||||
|
||||
print "\r"
|
||||
#
|
||||
# print " \r"
|
||||
#
|
||||
# # if @options[:verbose]
|
||||
# puts "Received issues...: #{issues.count}"
|
||||
# end
|
||||
|
||||
# remove pull request from issues:
|
||||
issues.select! { |x|
|
||||
|
|
Loading…
Reference in New Issue
Block a user