fix typo!

This commit is contained in:
Petr Korolev 2014-11-07 18:24:02 +02:00
parent 606fab4289
commit 502ae431b7

View File

@ -234,23 +234,23 @@ class ChangelogGenerator
if issues if issues
issues.each { |dict| issues.each { |dict|
is_bug = false is_bug = false
is_enchantment = 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 == 'enchantment' if label.name == 'enhancement'
is_enchantment = true is_enhancement = true
end end
} }
intro = 'Fixed issue' intro = 'Closed issue'
if is_bug if is_bug
intro = 'Fixed bug' intro = 'Fixed bug'
end end
if is_enchantment if is_enhancement
intro = 'Implemented enchantment' intro = 'Implemented enhancement'
end end
merge = "*#{intro}:* #{dict[:title]} [\\##{dict[:number]}](https://github.com/#{@options[:user]}/#{@options[:project]}/issues/#{dict[:number]})\n\n" merge = "*#{intro}:* #{dict[:title]} [\\##{dict[:number]}](https://github.com/#{@options[:user]}/#{@options[:project]}/issues/#{dict[:number]})\n\n"