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/)
|
.lines.grep(/Merge pull request/)
|
||||||
|
|
||||||
output.map! do |s|
|
output.map! do |s|
|
||||||
s.gsub(/.*Merge pull request #(\d+)[^>]*(>>)*/,
|
s.gsub(/.*Merge pull request #(\d+) from ([^\/]+)\/[^>]*(>>)*/,
|
||||||
"https://github.com/Homebrew/brew/pull/\\1")
|
"https://github.com/Homebrew/brew/pull/\\1 (@\\2)")
|
||||||
end
|
end
|
||||||
if ARGV.include?("--markdown")
|
if ARGV.include?("--markdown")
|
||||||
output.map! do |s|
|
output.map! do |s|
|
||||||
/(.*\d)+ - (.*)/ =~ s
|
/(.*\d)+ \(@(.+)\) - (.*)/ =~ s
|
||||||
"- [#{$2}](#{$1})"
|
"- [#{$3}](#{$1}) (@#{$2})"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user