MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / joinChangelog

Function joinChangelog

scripts/prepare-release.mjs:94–102  ·  view source on GitHub ↗
({ preface, blocks })

Source from the content-addressed store, hash-verified

92}
93
94function joinChangelog({ preface, blocks }) {
95 const parts = [preface.join('\n')];
96 for (const b of blocks) {
97 // Reconstruct: header + body. The block body INCLUDES the blank
98 // line after the header (it was captured verbatim).
99 parts.push([b.header, ...b.body].join('\n'));
100 }
101 return parts.join('\n');
102}
103
104/**
105 * Split a block body into ordered sub-sections keyed by their

Callers 1

mainFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected