diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-09-14 11:18:58 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2022-09-14 11:24:06 +0900 |
commit | c28a4e03400d71af95801e1e7cb4e50bebaa4075 (patch) | |
tree | 71e4cbfcd4fd7236a717a2464f6b9e64eec9f541 /tool/lib/vcs.rb | |
parent | f863bc505cf1a976aecd0ed3cb21a3a82956953e (diff) |
Replace "Fixes"/"Fixed" in commit logs as well as vcs.rb [ci skip]
Use the same regexp to replace "(#NNNN)" and "GH-NNNN" style
references in vcs.rb, too.
Diffstat (limited to 'tool/lib/vcs.rb')
-rw-r--r-- | tool/lib/vcs.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index 65ab3d4eec..05d95061c4 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -659,7 +659,7 @@ class VCS 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} + s.gsub!(/\b(?:(?i:fix(?:e[sd])?) +|GH-)\K#(?=\d+\b)|\(\K#(?=\d+\))/) {issue} end s.gsub!(/ +\n/, "\n") |