Merge pull request #2730 from MikeMcQuaid/release-notes

release-notes: include PR author names.
This commit is contained in:
Mike McQuaid 2017-06-03 20:23:41 +01:00 committed by GitHub
commit dd51a0f377

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