From f9c559a0a2892d131e7d16c72d6ebd61f3cde208 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 13 Jul 2021 19:05:50 +0900 Subject: sync_default_gems.rb: expand links to PRs of the upstream --- tool/sync_default_gems.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tool/sync_default_gems.rb') diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 5ef672b35b..c8fc83a4aa 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -333,8 +333,11 @@ IGNORE_FILE_PATTERN = def message_filter(repo, sha) log = STDIN.read - print "[#{repo}] ", log.sub(/\s*(?=(?i:\nCo-authored-by:.*)*\Z)/) { - "\n\n" "https://github.com/#{repo}/commit/#{sha[0,10]}\n" + url = "https://github.com/#{repo}" + print "[#{repo}] ", log.gsub(/fix +#\d+|\(#\d+\)/i) { + $&.sub(/#/) {"#{url}/pull/"} + }.sub(/\s*(?=(?i:\nCo-authored-by:.*)*\Z)/) { + "\n\n" "#{url}/commit/#{sha[0,10]}\n" } end -- cgit v1.2.3