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]
|
||||
# Generate issues:
|
||||
if issues && issues.any?
|
||||
if pull_requests && pull_requests.any? && @options[:pulls]
|
||||
log += "\n\n-\n\n"
|
||||
end
|
||||
|
||||
if issues
|
||||
issues.each { |dict|
|
||||
merge = "*Fixed issue:* #{dict[:title]} [\\##{dict[:number]}](https://github.com/#{@options[:user]}/#{@options[:project]}/issues/#{dict[:number]})\n\n"
|
||||
log += "- #{merge}"
|
||||
|
|
|
@ -23,7 +23,7 @@ class Parser
|
|||
opts.on('-v', '--[no-]verbose', 'Run verbosely') do |v|
|
||||
options[:verbose] = v
|
||||
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
|
||||
end
|
||||
opts.on('--[no-]pull-requests', 'Include pull-requests to changelog. Default is true') do |v|
|
||||
|
|
Loading…
Reference in New Issue
Block a user