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

Function summaryNeedsBlockLayout

packages/bumpy/src/core/changelog.ts:72–77  ·  view source on GitHub ↗
(summary: string)

Source from the content-addressed store, hash-verified

70 * is multi-line, long, or contains markdown block syntax.
71 */
72export function summaryNeedsBlockLayout(summary: string): boolean {
73 const contentLines = summary.split('\n').filter((l) => l.trim());
74 if (contentLines.length > 1) return true;
75 if ((contentLines[0]?.length ?? 0) > INLINE_SUMMARY_MAX_LENGTH) return true;
76 return MARKDOWN_BLOCK_RE.test(summary);
77}
78
79/** Strip leading/trailing blank lines while preserving internal structure (e.g. paragraph breaks) */
80export function trimBlankEdges(lines: string[]): string[] {

Callers 2

createGithubFormatterFunction · 0.90
defaultFormatterFunction · 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…