Merge pull request #2730 from MikeMcQuaid/release-notes
release-notes: include PR author names.
This commit is contained in:
commit
dd51a0f377
@ -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