Merge branch 'hotfix/fix-57'

This commit is contained in:
Petr Korolev 2015-03-03 17:20:23 +02:00
commit 931c90cecd
2 changed files with 8 additions and 3 deletions

View File

@ -85,8 +85,13 @@ module GitHubChangelogGenerator
if event[:commit_id].nil?
issue[:actual_date] = issue[:closed_at]
else
commit = @github.git_data.commits.get @options[:user], @options[:project], event[:commit_id]
issue[:actual_date] = commit[:author][:date]
begin
commit = @github.git_data.commits.get @options[:user], @options[:project], event[:commit_id]
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
break
end

View File

@ -1,3 +1,3 @@
module GitHubChangelogGenerator
VERSION = '1.3.1'
VERSION = '1.3.2'
end