ruby-changes:67586
From: Nobuyoshi <ko1@a...>
Date: Sat, 4 Sep 2021 00:27:41 +0900 (JST)
Subject: [ruby-changes:67586] 3a145066a6 (master): Expand upstream issue numbers to URLs in ChangeLog
https://git.ruby-lang.org/ruby.git/commit/?id=3a145066a6 From 3a145066a6d51cf622a9cd77d7f0942d7313fdc3 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 4 Sep 2021 00:26:39 +0900 Subject: Expand upstream issue numbers to URLs in ChangeLog --- tool/lib/vcs.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index 1ccf80a..c41276e 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -625,6 +625,12 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/lib/vcs.rb#L625 end s = s.join('') end + + if %r[^ +(https://github\.com/[^/]+/[^/]+/)commit/\h+\n(?=(?: +\n(?i: +Co-authored-by: .*\n)+)?(?:\n|\Z))] =~ s + issue = "#{$1}pull/" + s.gsub!(/\b[Ff]ix(?:e[sd])? \K#(?=\d+)/) {issue} + end + s.gsub!(/ +\n/, "\n") s.sub!(/^Notes:/, ' \&') w.print h, s -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/