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

Function readWhatsChangedContent

scripts/changes/version.ts:143–155  ·  view source on GitHub ↗

* Reads optional manually-authored release notes for the root changelog.

()

Source from the content-addressed store, hash-verified

141 * Reads optional manually-authored release notes for the root changelog.
142 */
143function readWhatsChangedContent(): string | null {
144 if (!fs.existsSync(whatsChangedPath)) {
145 return null;
146 }
147
148 let content = readFile(whatsChangedPath).trim();
149 if (content.length === 0) {
150 return null;
151 }
152
153 console.log(` ✓ Found scripts/changes/whats-changed.md`);
154 return content;
155}
156
157/**
158 * Formats manually-authored release notes as a "What's Changed" section.

Callers 1

version.tsFile · 0.85

Calls 2

readFileFunction · 0.90
logMethod · 0.80

Tested by

no test coverage detected