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: expand links to PRs of the upstream

This commit is contained in:
Nobuyoshi Nakada 2021-07-13 19:05:50 +09:00
parent 5fd5d71a4b
commit f9c559a0a2
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -333,8 +333,11 @@ IGNORE_FILE_PATTERN =
def message_filter(repo, sha) def message_filter(repo, sha)
log = STDIN.read log = STDIN.read
print "[#{repo}] ", log.sub(/\s*(?=(?i:\nCo-authored-by:.*)*\Z)/) { url = "https://github.com/#{repo}"
"\n\n" "https://github.com/#{repo}/commit/#{sha[0,10]}\n" print "[#{repo}] ", log.gsub(/fix +#\d+|\(#\d+\)/i) {
$&.sub(/#/) {"#{url}/pull/"}
}.sub(/\s*(?=(?i:\nCo-authored-by:.*)*\Z)/) {
"\n\n" "#{url}/commit/#{sha[0,10]}\n"
} }
end end