From 95647378ffdaa0ceb09595430b43534d3a7f3452 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Fri, 25 Nov 2022 21:41:36 -0800 Subject: Support other GitHub PR/issue syntaxes https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue --- tool/sync_default_gems.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tool') diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 9091e260a8..c8d72a2abf 100755 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -427,7 +427,7 @@ def message_filter(repo, sha, input: ARGF) url = "https://github.com/#{repo}" subject, log = log.split(/\n(?:[\s\t]*(?:\n|\z))/, 2) conv = proc do |s| - mod = true if s.gsub!(/\b(?:(?i:fix(?:e[sd])?) +)\K#(?=\d+\b)|\bGH-#?(?=\d+\b)|\(\K#(?=\d+\))/) { + mod = true if s.gsub!(/\b(?:(?i:fix(?:e[sd])?|close[sd]?|resolve[sd]?) +)\K#(?=\d+\b)|\bGH-#?(?=\d+\b)|\(\K#(?=\d+\))/) { "#{url}/pull/" } mod |= true if s.gsub!(%r{(?