This fixes #54. And fix #240 also.

This commit is contained in:
Petr Korolev
2015-06-11 16:35:38 +03:00
parent f7e9199841
commit 80a5fdef0c
4 changed files with 22 additions and 7 deletions
@@ -104,12 +104,12 @@ module GitHubChangelogGenerator
issues.each do |dict|
added = false
dict.labels.each do |label|
if label.name == "bug"
if @options[:bug_labels].include? label.name
bugs_a.push dict
added = true
next
end
if label.name == "enhancement"
if @options[:enhancement_labels].include? label.name
enhancement_a.push dict
added = true
next