Remove delimeter and fix parser. This final commit should close #6 enchantment! Yay!
This commit is contained in:
parent
381ffeb261
commit
acd2daada3
|
@ -231,11 +231,7 @@ class ChangelogGenerator
|
||||||
|
|
||||||
if @options[:issues]
|
if @options[:issues]
|
||||||
# Generate issues:
|
# Generate issues:
|
||||||
if issues && issues.any?
|
if issues
|
||||||
if pull_requests && pull_requests.any? && @options[:pulls]
|
|
||||||
log += "\n\n-\n\n"
|
|
||||||
end
|
|
||||||
|
|
||||||
issues.each { |dict|
|
issues.each { |dict|
|
||||||
merge = "*Fixed issue:* #{dict[:title]} [\\##{dict[:number]}](https://github.com/#{@options[:user]}/#{@options[:project]}/issues/#{dict[:number]})\n\n"
|
merge = "*Fixed issue:* #{dict[:title]} [\\##{dict[:number]}](https://github.com/#{@options[:user]}/#{@options[:project]}/issues/#{dict[:number]})\n\n"
|
||||||
log += "- #{merge}"
|
log += "- #{merge}"
|
||||||
|
|
|
@ -23,7 +23,7 @@ class Parser
|
||||||
opts.on('-v', '--[no-]verbose', 'Run verbosely') do |v|
|
opts.on('-v', '--[no-]verbose', 'Run verbosely') do |v|
|
||||||
options[:verbose] = v
|
options[:verbose] = v
|
||||||
end
|
end
|
||||||
opts.on('-i', '--[no-]issues', 'Include closed issues to changelog') do |v|
|
opts.on('--[no-]issues', 'Include closed issues to changelog. Default is true') do |v|
|
||||||
options[:issues] = v
|
options[:issues] = v
|
||||||
end
|
end
|
||||||
opts.on('--[no-]pull-requests', 'Include pull-requests to changelog. Default is true') do |v|
|
opts.on('--[no-]pull-requests', 'Include pull-requests to changelog. Default is true') do |v|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user