MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / format_release_notes_for_display

Function format_release_notes_for_display

src/utils/release_notes.py:89–101  ·  view source on GitHub ↗

TS ``formatReleaseNotesForDisplay`` (releaseNotes.ts:428-444): encoded section headers render as ``"{Title}:"`` preceded by a blank line when not first; plain notes render as ``"- {note}"``.

(notes: list[str])

Source from the content-addressed store, hash-verified

87
88
89def format_release_notes_for_display(notes: list[str]) -> str:
90 """TS ``formatReleaseNotesForDisplay`` (releaseNotes.ts:428-444): encoded section
91 headers render as ``"{Title}:"`` preceded by a blank line when not first; plain
92 notes render as ``"- {note}"``."""
93 lines: list[str] = []
94 for note in notes:
95 if is_release_section_header(note):
96 if lines:
97 lines.append("")
98 lines.append(f"{get_release_section_header_title(note)}:")
99 continue
100 lines.append(f"- {note}")
101 return "\n".join(lines)
102
103
104def get_release_tag_url(version: str) -> str:

Callers 3

release_notes_callFunction · 0.90
test_format_plain_notesFunction · 0.90

Calls 4

joinMethod · 0.80
appendMethod · 0.45

Tested by 2

test_format_plain_notesFunction · 0.72