1
0
Fork 0
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:
Nobuyoshi Nakada 2022-10-28 13:15:14 +09:00
parent 9cf027f83a
commit e6e202234c
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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