formatting
This commit is contained in:
parent
936b191566
commit
807bacd95a
|
@ -60,7 +60,7 @@ class ChangelogGenerator
|
||||||
tag1 = @options[:tag1]
|
tag1 = @options[:tag1]
|
||||||
tag2 = @options[:tag2]
|
tag2 = @options[:tag2]
|
||||||
tags_strings = []
|
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?(tag1)
|
||||||
if tags_strings.include?(tag2)
|
if tags_strings.include?(tag2)
|
||||||
|
@ -165,7 +165,7 @@ class ChangelogGenerator
|
||||||
|
|
||||||
issues = Array.new(@issues)
|
issues = Array.new(@issues)
|
||||||
|
|
||||||
issues.delete_if{ |issue|
|
issues.delete_if { |issue|
|
||||||
if issue[:closed_at]
|
if issue[:closed_at]
|
||||||
t = Time.parse(issue[:closed_at]).utc
|
t = Time.parse(issue[:closed_at]).utc
|
||||||
tag_is_later_since = t > since_tag_time
|
tag_is_later_since = t > since_tag_time
|
||||||
|
@ -201,7 +201,7 @@ class ChangelogGenerator
|
||||||
|
|
||||||
issues = Array.new(@issues)
|
issues = Array.new(@issues)
|
||||||
|
|
||||||
issues.delete_if{ |issue|
|
issues.delete_if { |issue|
|
||||||
if issue[:closed_at]
|
if issue[:closed_at]
|
||||||
t = Time.parse(issue[:closed_at]).utc
|
t = Time.parse(issue[:closed_at]).utc
|
||||||
t > tag_time
|
t > tag_time
|
||||||
|
@ -239,19 +239,19 @@ class ChangelogGenerator
|
||||||
if issues
|
if issues
|
||||||
issues.each { |dict|
|
issues.each { |dict|
|
||||||
is_bug = false
|
is_bug = false
|
||||||
is_enhancement = false
|
is_enhancement = false
|
||||||
dict.labels.each { |label|
|
dict.labels.each { |label|
|
||||||
if label.name == 'bug'
|
if label.name == 'bug'
|
||||||
is_bug = true
|
is_bug = true
|
||||||
end
|
end
|
||||||
if label.name == 'enhancement'
|
if label.name == 'enhancement'
|
||||||
is_enhancement = true
|
is_enhancement = true
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
intro = 'Closed issue'
|
intro = 'Closed issue'
|
||||||
if is_bug
|
if is_bug
|
||||||
intro = 'Fixed bug'
|
intro = 'Fixed bug'
|
||||||
end
|
end
|
||||||
|
|
||||||
if is_enhancement
|
if is_enhancement
|
||||||
|
|
Loading…
Reference in New Issue
Block a user