MCPcopy Index your code
hub / github.com/nodejs/nodejs.org / fetchChangelogBody

Function fetchChangelogBody

apps/site/scripts/release-post/index.mjs:159–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157};
158
159const fetchChangelogBody = version => {
160 return fetchChangelog(version).then(section => {
161 const replaceAsteriskLists = str =>
162 str.replace(/^([ ]{0,4})(\* )/gm, '$1- ');
163
164 return new Promise(resolve =>
165 resolve(replaceAsteriskLists(section.trim()))
166 );
167 });
168};
169
170const fetchVersionPolicy = version => {
171 return fetchChangelog(version).then(section => {

Callers 1

fetchDocsFunction · 0.85

Calls 3

fetchChangelogFunction · 0.85
resolveFunction · 0.85
replaceAsteriskListsFunction · 0.85

Tested by

no test coverage detected