ruby-changes:70512
From: Nobuyoshi <ko1@a...>
Date: Fri, 24 Dec 2021 14:41:18 +0900 (JST)
Subject: [ruby-changes:70512] 083cf6a577 (master): sync_default_gems.rb: Expand GH-xxxx style GitHub links [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=083cf6a577 From 083cf6a577f12ddf5c850303a08583599400d92d Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 24 Dec 2021 14:24:45 +0900 Subject: sync_default_gems.rb: Expand GH-xxxx style GitHub links [ci skip] --- tool/sync_default_gems.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index d10e95902b5..18771085b5a 100755 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -381,7 +381,7 @@ def message_filter(repo, sha) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L381 log = STDIN.read log.delete!("\r") url = "https://github.com/#{repo}" - print "[#{repo}] ", log.gsub(/\b(?i:fix) +\K#(?=\d+\b)|\(\K#(?=\d+\))/) { + print "[#{repo}] ", log.gsub(/\b(?i:fix) +\K#(?=\d+\b)|\(\K#(?=\d+\))|\bGH-(?=\d+\b)/) { "#{url}/pull/" }.gsub(%r{(?<![-\[\](){}\w@/])(?:(\w+(?:-\w+)*/\w+(?:-\w+)*)@)?(\h{10,40})\b}) {|c| "https://github.com/#{$1 || repo}/commit/#{$2[0,12]}" -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/