MCPcopy Create free account
hub / github.com/remix-run/react-router / formatWhatsChangedSection

Function formatWhatsChangedSection

scripts/changes/version.ts:160–166  ·  view source on GitHub ↗

* Formats manually-authored release notes as a "What's Changed" section.

(content: string)

Source from the content-addressed store, hash-verified

158 * Formats manually-authored release notes as a "What's Changed" section.
159 */
160function formatWhatsChangedSection(content: string): string {
161 if (/^### What's Changed\s*$/im.test(content)) {
162 return content;
163 }
164
165 return `### What's Changed\n\n${content}`;
166}
167
168/**
169 * Deletes the manually-authored release notes file after consuming it.

Callers 1

version.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected