MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / stripVersionHeading

Function stripVersionHeading

packages/bumpy/src/core/github-release.ts:99–104  ·  view source on GitHub ↗

Strip the leading ## version heading and date sub-heading from a changelog entry

(entry: string)

Source from the content-addressed store, hash-verified

97
98/** Strip the leading ## version heading and date sub-heading from a changelog entry */
99function stripVersionHeading(entry: string): string {
100 return entry
101 .replace(/^## .+\n/, '') // remove ## version heading
102 .replace(/^<sub>.+<\/sub>\n/, '') // remove <sub>date</sub> line
103 .replace(/^_.+_\n/, ''); // remove _date_ line
104}
105
106export function buildReleaseBody(release: PlannedRelease, bumpFiles: BumpFile[]): string {
107 const lines: string[] = [];

Callers 1

generateReleaseBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…