formatting

This commit is contained in:
Petr Korolev 2014-11-10 14:41:36 +02:00
parent 936b191566
commit 807bacd95a

View File

@ -60,7 +60,7 @@ class ChangelogGenerator
tag1 = @options[:tag1]
tag2 = @options[:tag2]
tags_strings = []
self.all_tags.each { |x| tags_strings.push(x['name'])}
self.all_tags.each { |x| tags_strings.push(x['name']) }
if tags_strings.include?(tag1)
if tags_strings.include?(tag2)
@ -165,7 +165,7 @@ class ChangelogGenerator
issues = Array.new(@issues)
issues.delete_if{ |issue|
issues.delete_if { |issue|
if issue[:closed_at]
t = Time.parse(issue[:closed_at]).utc
tag_is_later_since = t > since_tag_time
@ -201,7 +201,7 @@ class ChangelogGenerator
issues = Array.new(@issues)
issues.delete_if{ |issue|
issues.delete_if { |issue|
if issue[:closed_at]
t = Time.parse(issue[:closed_at]).utc
t > tag_time
@ -239,19 +239,19 @@ class ChangelogGenerator
if issues
issues.each { |dict|
is_bug = false
is_enhancement = false
is_enhancement = false
dict.labels.each { |label|
if label.name == 'bug'
is_bug = true
end
if label.name == 'enhancement'
is_enhancement = true
is_enhancement = true
end
}
intro = 'Closed issue'
if is_bug
intro = 'Fixed bug'
intro = 'Fixed bug'
end
if is_enhancement