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?
|
unless @options[:include_labels].nil?
|
||||||
filtered_pull_requests = @pull_requests.select { |issue|
|
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?
|
(issue.labels.map(&:name) & @options[:include_labels]).any?
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
@ -518,7 +518,7 @@ module GitHubChangelogGenerator
|
||||||
|
|
||||||
unless @options[:include_labels].nil?
|
unless @options[:include_labels].nil?
|
||||||
filtered_issues = issues.select { |issue|
|
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?
|
(issue.labels.map(&:name) & @options[:include_labels]).any?
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
|
@ -11,6 +11,7 @@ module GitHubChangelogGenerator
|
||||||
tag2: nil,
|
tag2: nil,
|
||||||
format: '%Y-%m-%d',
|
format: '%Y-%m-%d',
|
||||||
output: 'CHANGELOG.md',
|
output: 'CHANGELOG.md',
|
||||||
|
include_labels: %w(bug enhancement),
|
||||||
exclude_labels: %w(duplicate question invalid wontfix),
|
exclude_labels: %w(duplicate question invalid wontfix),
|
||||||
pulls: true,
|
pulls: true,
|
||||||
issues: true,
|
issues: true,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user