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:
parent
5fd5d71a4b
commit
f9c559a0a2
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue