This commit is contained in:
Olle Jonsson
2016-09-27 23:44:49 +02:00
parent 88bcb872a6
commit d8b34169a3
10 changed files with 40 additions and 39 deletions
@@ -75,7 +75,7 @@ module GitHubChangelogGenerator
begin
commit = @fetcher.fetch_commit(event)
issue["actual_date"] = commit["commit"]["author"]["date"]
# issue['actual_date'] = commit['author']['date']
rescue
puts "Warning: Can't fetch commit #{event['commit_id']}. It is probably referenced from another repo."
@@ -178,9 +178,9 @@ module GitHubChangelogGenerator
return "#{line} ({Null user})" unless user
if @options[:usernames_as_github_logins]
"#{line} (@#{user["login"]})"
"#{line} (@#{user['login']})"
else
"#{line} ([#{user["login"]}](#{user["html_url"]}))"
"#{line} ([#{user['login']}](#{user['html_url']}))"
end
end
end
@@ -101,7 +101,7 @@ module GitHubChangelogGenerator
def get_filtered_tags(all_tags)
filtered_tags = filter_since_tag(all_tags)
filtered_tags = filter_due_tag(filtered_tags)
filtered_tags = filter_between_tags(filtered_tags)
filter_between_tags(filtered_tags)
end
# @param [Array] all_tags all tags
@@ -148,7 +148,7 @@ module GitHubChangelogGenerator
# @return [Array] filtered tags according :between_tags option
def filter_between_tags(all_tags)
filtered_tags = all_tags
tag_names = filtered_tags.map { |ft| ft['name'] }
tag_names = filtered_tags.map { |ft| ft["name"] }
if @options[:between_tags]
@options[:between_tags].each do |tag|