Skip to content

Commit 931c90c

Browse files
committed
Merge branch 'hotfix/fix-57'
2 parents 215daa4 + 911e6a6 commit 931c90c

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

lib/github_changelog_generator.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,13 @@ def find_closed_date_by_commit(issue)
8585
if event[:commit_id].nil?
8686
issue[:actual_date] = issue[:closed_at]
8787
else
88-
commit = @github.git_data.commits.get @options[:user], @options[:project], event[:commit_id]
89-
issue[:actual_date] = commit[:author][:date]
88+
begin
89+
commit = @github.git_data.commits.get @options[:user], @options[:project], event[:commit_id]
90+
issue[:actual_date] = commit[:author][:date]
91+
rescue
92+
puts "Warning: can't fetch commit #{event[:commit_id]} probably it referenced from another repo."
93+
issue[:actual_date] = issue[:closed_at]
94+
end
9095
end
9196
break
9297
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module GitHubChangelogGenerator
2-
VERSION = '1.3.1'
2+
VERSION = '1.3.2'
33
end

0 commit comments

Comments
 (0)