mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Expand upstream issue numbers to URLs in ChangeLog
This commit is contained in:
parent
af68112a1b
commit
3a145066a6
1 changed files with 6 additions and 0 deletions
|
@ -625,6 +625,12 @@ class VCS
|
|||
end
|
||||
s = s.join('')
|
||||
end
|
||||
|
||||
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}
|
||||
end
|
||||
|
||||
s.gsub!(/ +\n/, "\n")
|
||||
s.sub!(/^Notes:/, ' \&')
|
||||
w.print h, s
|
||||
|
|
Loading…
Add table
Reference in a new issue