mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
sync_default_gems.rb: append orignal commit URLs to subject only log
This commit is contained in:
parent
9cf027f83a
commit
e6e202234c
1 changed files with 4 additions and 1 deletions
|
@ -439,11 +439,14 @@ def message_filter(repo, sha)
|
|||
subject.gsub!(/\G.{,67}[^\s.,][.,]*\K\s+/, "\n")
|
||||
end
|
||||
end
|
||||
url = "#{url}/commit/#{sha[0,10]}\n"
|
||||
if log
|
||||
conv[log]
|
||||
log.sub!(/\s*(?=(?i:\nCo-authored-by:.*)*\Z)/) {
|
||||
"\n\n" "#{url}/commit/#{sha[0,10]}\n"
|
||||
"\n\n#{url}"
|
||||
}
|
||||
else
|
||||
log = url
|
||||
end
|
||||
print subject, "\n\n", log
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue