release-notes: include PR author names.
Attribution is love.
This commit is contained in:
parent
1e33120a22
commit
4676e2f35a
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user