Set default for include labels
This commit is contained in:
parent
c088349bc3
commit
fd2beef12a
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user