summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-12-24 14:24:45 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-12-24 14:34:14 +0900
commit083cf6a577f12ddf5c850303a08583599400d92d (patch)
treedba341acd7b6e567a0daa51a03e6e8bfe152d3b3 /tool
parent097c4a2adf6ed640bd5c89653e591a674acd4c6e (diff)
sync_default_gems.rb: Expand GH-xxxx style GitHub links [ci skip]
Diffstat (limited to 'tool')
-rwxr-xr-xtool/sync_default_gems.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index d10e95902b..18771085b5 100755
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -381,7 +381,7 @@ def message_filter(repo, sha)
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]}"