fix trimming for issues

This commit is contained in:
Petr Korolev
2014-12-03 16:08:20 +02:00
parent 057fb488d5
commit 68a8d8d2c8
2 changed files with 11 additions and 5 deletions
+5 -2
View File
@@ -6,8 +6,11 @@ module GitHubChangelogGenerator
end
def get_string_for_pull_request(pull_request)
trimmed_title = pull_request[:title].gsub '>', '/>'
merge = "#{@options[:merge_prefix]}#{trimmed_title} [\\##{pull_request[:number]}](#{pull_request.html_url})"
pull_request[:title].gsub! '>', '\>'
pull_request[:title].gsub! '*', '\*'
pull_request[:title].gsub! '_', '\_'
merge = "#{@options[:merge_prefix]}#{pull_request[:title]} [\\##{pull_request[:number]}](#{pull_request.html_url})"
if @options[:author]
merge += " ([#{pull_request.user.login}](#{pull_request.user.html_url}))\n\n"
else