This commit is contained in:
Petr Korolev 2015-03-03 15:34:19 +02:00
parent 215daa4ede
commit 8201de3758

View File

@ -85,8 +85,13 @@ 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
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]
issue[:actual_date] = commit[:author][:date] issue[:actual_date] = commit[:author][:date]
rescue
puts "Warning: can't fetch commit #{event[:commit_id]} probably it referenced from another repo."
issue[:actual_date] = issue[:closed_at]
end
end end
break break
end end