Set default for include labels

This commit is contained in:
tuexss 2015-03-27 00:16:35 +01:00
parent c088349bc3
commit fd2beef12a
2 changed files with 3 additions and 2 deletions

View File

@ -150,7 +150,7 @@ module GitHubChangelogGenerator
unless @options[:include_labels].nil?
filtered_pull_requests = @pull_requests.select { |issue|
# add all labels from @options[:incluse_labels] array
# add all labels from @options[:include_labels] array
(issue.labels.map(&:name) & @options[:include_labels]).any?
}
end
@ -518,7 +518,7 @@ module GitHubChangelogGenerator
unless @options[:include_labels].nil?
filtered_issues = issues.select { |issue|
# add all labels from @options[:incluse_labels] array
# add all labels from @options[:include_labels] array
(issue.labels.map(&:name) & @options[:include_labels]).any?
}
end

View File

@ -11,6 +11,7 @@ module GitHubChangelogGenerator
tag2: nil,
format: '%Y-%m-%d',
output: 'CHANGELOG.md',
include_labels: %w(bug enhancement),
exclude_labels: %w(duplicate question invalid wontfix),
pulls: true,
issues: true,