From e6e202234c0f5d9755cf2aa88b178371fd8b38e4 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 28 Oct 2022 13:15:14 +0900 Subject: [PATCH] sync_default_gems.rb: append orignal commit URLs to subject only log --- tool/sync_default_gems.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 8d33004ffb..b669be7f55 100755 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -439,11 +439,14 @@ def message_filter(repo, sha) subject.gsub!(/\G.{,67}[^\s.,][.,]*\K\s+/, "\n") end end + url = "#{url}/commit/#{sha[0,10]}\n" if log conv[log] log.sub!(/\s*(?=(?i:\nCo-authored-by:.*)*\Z)/) { - "\n\n" "#{url}/commit/#{sha[0,10]}\n" + "\n\n#{url}" } + else + log = url end print subject, "\n\n", log end