release-notes: include PR author names.

Attribution is love.
This commit is contained in:
Mike McQuaid 2017-06-03 19:06:19 +01:00
parent 1e33120a22
commit 4676e2f35a

View File

@ -27,13 +27,13 @@ module Homebrew
.lines.grep(/Merge pull request/)
output.map! do |s|
s.gsub(/.*Merge pull request #(\d+)[^>]*(>>)*/,
"https://github.com/Homebrew/brew/pull/\\1")
s.gsub(/.*Merge pull request #(\d+) from ([^\/]+)\/[^>]*(>>)*/,
"https://github.com/Homebrew/brew/pull/\\1 (@\\2)")
end
if ARGV.include?("--markdown")
output.map! do |s|
/(.*\d)+ - (.*)/ =~ s
"- [#{$2}](#{$1})"
/(.*\d)+ \(@(.+)\) - (.*)/ =~ s
"- [#{$3}](#{$1}) (@#{$2})"
end
end