Skip to content

Commit a2a8181

Browse files
committed
[DOC] Stop expanding GitHub style references in ChangeLog
For conciseness, omit URL expansion within ChangeLog files. Instead, RDoc now handles external commit references when converting ChangeLog to HTML. C.f., ruby/rdoc#1547.
1 parent 9aa30b5 commit a2a8181

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

tool/lib/vcs.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -595,15 +595,6 @@ def changelog_formatter(path, arg, base_url = nil)
595595
s = s.join('')
596596
end
597597

598-
s.gsub!(%r[(?!<\w)([-\w]+/[-\w]+)(?:@(\h{8,40})|#(\d{5,}))\b]) do
599-
path = defined?($2) ? "commit/#{$2}" : "pull/#{$3}"
600-
"[#$&](https://github.com/#{$1}/#{path})"
601-
end
602-
if %r[^ +(https://github\.com/[^/]+/[^/]+/)commit/\h+\n(?=(?: +\n(?i: +Co-authored-by: .*\n)+)?(?:\n|\Z))] =~ s
603-
issue = "#{$1}pull/"
604-
s.gsub!(/\b(?:(?i:fix(?:e[sd])?) +|GH-)\K#(?=\d+\b)|\(\K#(?=\d+\))/) {issue}
605-
end
606-
607598
s.gsub!(/ +\n/, "\n")
608599
s.sub!(/^Notes:/, ' \&')
609600
w.print sep, h, s

0 commit comments

Comments
 (0)