diff options
-rwxr-xr-x | tool/sync_default_gems.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 4ed0785e47..9557458007 100755 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -380,6 +380,8 @@ def message_filter(repo, sha) url = "https://github.com/#{repo}" print "[#{repo}] ", log.gsub(/fix +#\d+|\(#\d+\)/i) { $&.sub(/#/) {"#{url}/pull/"} + }.gsub(%r{(?<![-\[\](){}\w@/])(?:(\w+(?:-\w+)*/\w+(?:-\w+)*)@)?(\h{10,40})\b}) {|c| + "https://github.com/#{$1 || repo}/commit/#{$2[0,12]}" }.sub(/\s*(?=(?i:\nCo-authored-by:.*)*\Z)/) { "\n\n" "#{url}/commit/#{sha[0,10]}\n" } |