Merge branch 'develop'
This commit is contained in:
commit
2576706e9f
|
@ -93,15 +93,11 @@ module GitHubChangelogGenerator
|
||||||
if event[:commit_id].nil?
|
if event[:commit_id].nil?
|
||||||
issue[:actual_date] = issue[:closed_at]
|
issue[:actual_date] = issue[:closed_at]
|
||||||
else
|
else
|
||||||
begin
|
|
||||||
begin
|
begin
|
||||||
commit = @github.git_data.commits.get @options[:user], @options[:project], event[:commit_id]
|
commit = @github.git_data.commits.get @options[:user], @options[:project], event[:commit_id]
|
||||||
rescue
|
|
||||||
puts GH_RATE_LIMIT_EXCEEDED_MSG.yellow
|
|
||||||
end
|
|
||||||
issue[:actual_date] = commit[:author][:date]
|
issue[:actual_date] = commit[:author][:date]
|
||||||
rescue
|
rescue
|
||||||
puts "Warning: can't fetch commit #{event[:commit_id]} probably it referenced from another repo."
|
puts "Warning: can't fetch commit #{event[:commit_id]} probably it referenced from another repo.".yellow
|
||||||
issue[:actual_date] = issue[:closed_at]
|
issue[:actual_date] = issue[:closed_at]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -285,7 +281,7 @@ module GitHubChangelogGenerator
|
||||||
threads.each { |thr| thr.join }
|
threads.each { |thr| thr.join }
|
||||||
|
|
||||||
if @options[:verbose]
|
if @options[:verbose]
|
||||||
puts 'Fetching tags: Done!'
|
puts "Fetching tags dates: #{i} Done!"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -316,6 +312,11 @@ module GitHubChangelogGenerator
|
||||||
if @options[:verbose]
|
if @options[:verbose]
|
||||||
puts "Found #{tags.count} tags"
|
puts "Found #{tags.count} tags"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if tags.count == 0
|
||||||
|
puts "Warning: Can't find any tags in repo. Make sure, that you push tags to remote repo via 'git push --tags'".yellow
|
||||||
|
end
|
||||||
|
|
||||||
rescue
|
rescue
|
||||||
puts GH_RATE_LIMIT_EXCEEDED_MSG.yellow
|
puts GH_RATE_LIMIT_EXCEEDED_MSG.yellow
|
||||||
end
|
end
|
||||||
|
@ -623,12 +624,7 @@ module GitHubChangelogGenerator
|
||||||
|
|
||||||
fetch_events_async(@issues + @pull_requests)
|
fetch_events_async(@issues + @pull_requests)
|
||||||
|
|
||||||
#to clear line from prev print
|
|
||||||
print " \r"
|
|
||||||
|
|
||||||
if @options[:verbose]
|
|
||||||
puts 'Fetching events for issues and PR: Done!'
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def fetch_events_async(issues)
|
def fetch_events_async(issues)
|
||||||
|
@ -651,6 +647,14 @@ module GitHubChangelogGenerator
|
||||||
threads.each { |thr| thr.join }
|
threads.each { |thr| thr.join }
|
||||||
threads = []
|
threads = []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#to clear line from prev print
|
||||||
|
print " \r"
|
||||||
|
|
||||||
|
if @options[:verbose]
|
||||||
|
puts "Fetching events for issues and PR: #{i} Done!"
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user