summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2026-02-12 10:01:18 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2026-02-12 10:01:18 +0900
commita2a818169d7f1e47699af6a18603afafbdade4be (patch)
tree5404f879ed47a30603b80f21fbc2b767313a4fd7
parent9aa30b512f12ac3e298f7b971cdbd0e2cae8fc68 (diff)
[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.
-rw-r--r--tool/lib/vcs.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb
index 4169031436..ce545ec368 100644
--- a/tool/lib/vcs.rb
+++ b/tool/lib/vcs.rb
@@ -595,15 +595,6 @@ class VCS
s = s.join('')
end
- s.gsub!(%r[(?!<\w)([-\w]+/[-\w]+)(?:@(\h{8,40})|#(\d{5,}))\b]) do
- path = defined?($2) ? "commit/#{$2}" : "pull/#{$3}"
- "[#$&](https://github.com/#{$1}/#{path})"
- end
- if %r[^ +(https://github\.com/[^/]+/[^/]+/)commit/\h+\n(?=(?: +\n(?i: +Co-authored-by: .*\n)+)?(?:\n|\Z))] =~ s
- issue = "#{$1}pull/"
- s.gsub!(/\b(?:(?i:fix(?:e[sd])?) +|GH-)\K#(?=\d+\b)|\(\K#(?=\d+\))/) {issue}
- end
-
s.gsub!(/ +\n/, "\n")
s.sub!(/^Notes:/, ' \&')
w.print sep, h, s