From 8201de37587d497e469404f2eb53875d91392faf Mon Sep 17 00:00:00 2001 From: Petr Korolev Date: Tue, 3 Mar 2015 15:34:19 +0200 Subject: [PATCH 1/2] fix #57 --- lib/github_changelog_generator.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/github_changelog_generator.rb b/lib/github_changelog_generator.rb index 5b17758..df87dc9 100755 --- a/lib/github_changelog_generator.rb +++ b/lib/github_changelog_generator.rb @@ -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 From 911e6a6e6f278b33c780ff2f91b62c24dfdd3a56 Mon Sep 17 00:00:00 2001 From: Petr Korolev Date: Tue, 3 Mar 2015 17:20:21 +0200 Subject: [PATCH 2/2] Update gemspec to version 1.3.2 --- lib/github_changelog_generator/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/github_changelog_generator/version.rb b/lib/github_changelog_generator/version.rb index a4f90d5..fdaa682 100644 --- a/lib/github_changelog_generator/version.rb +++ b/lib/github_changelog_generator/version.rb @@ -1,3 +1,3 @@ module GitHubChangelogGenerator - VERSION = '1.3.1' + VERSION = '1.3.2' end