diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-10-28 13:15:14 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-10-28 13:15:14 +0900 |
commit | e6e202234c0f5d9755cf2aa88b178371fd8b38e4 (patch) | |
tree | 49fa5eb91b136a31f9f2d7f3f2c7c02ed3405caa /tool | |
parent | 9cf027f83afba538bea050ad19f4f597c50dcfc1 (diff) |
sync_default_gems.rb: append orignal commit URLs to subject only log
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/sync_default_gems.rb | 5 |
1 files changed, 4 insertions, 1 deletions
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 |