Remove delimeter and fix parser. This final commit should close #6 enchantment! Yay!

This commit is contained in:
Petr Korolev 2014-11-07 17:52:07 +02:00
parent 381ffeb261
commit acd2daada3
2 changed files with 2 additions and 6 deletions

View File

@ -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}"

View File

@ -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|