MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / printChangelog

Function printChangelog

scripts/format-changelog.js:282–300  ·  view source on GitHub ↗
(versions)

Source from the content-addressed store, hash-verified

280}
281
282function printChangelog(versions) {
283 for (const version of versions) {
284 console.log(`${version.version} (${version.date})`);
285 console.log(HeaderSeperator);
286 if (version.headline != "") {
287 console.log(version.headline);
288 console.log();
289 }
290 for (const entry of version.entries) {
291 var line = `- ${entry.changeType}: `;
292 if (entry.refs.length > 0) {
293 line += `[${entry.refs.join(", ")}] `;
294 }
295 line += `${entry.description}`;
296 console.log(line);
297 }
298 console.log();
299 }
300}
301
302function checkLineEndings(changelog) {
303 if (changelog.indexOf("\r\n") != -1) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected