optimize script
This commit is contained in:
parent
97d048d62f
commit
f1d9c839c7
|
@ -265,17 +265,16 @@ module GitHubChangelogGenerator
|
||||||
if @options[:pulls]
|
if @options[:pulls]
|
||||||
# Generate pull requests:
|
# Generate pull requests:
|
||||||
if pull_requests
|
if pull_requests
|
||||||
|
|
||||||
|
pull_requests.each { |dict|
|
||||||
|
merge = "#{@options[:merge_prefix]}#{dict[:title]} [\\##{dict[:number]}](#{dict.html_url})"
|
||||||
if @options[:author]
|
if @options[:author]
|
||||||
pull_requests.each { |dict|
|
merge += " ([#{dict.user.login}](#{dict.user.html_url}))\n\n"
|
||||||
merge = "#{@options[:merge_prefix]}#{dict[:title]} [\\##{dict[:number]}](#{dict.html_url}) ([#{dict.user.login}](#{dict.user.html_url}))\n\n"
|
|
||||||
log += "- #{merge}"
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
pull_requests.each { |dict|
|
merge += "\n\n"
|
||||||
merge = "#{@options[:merge_prefix]}#{dict[:title]} [\\##{dict[:number]}](#{dict.html_url})\n\n"
|
end
|
||||||
log += "- #{merge}"
|
log += "- #{merge}"
|
||||||
}
|
}
|
||||||
end
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user