MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / renderWeeklyNotes

Function renderWeeklyNotes

scripts/changelog-weekly.ts:315–346  ·  view source on GitHub ↗
(
  options: WeeklyOptions,
  range: string,
  commits: WeeklyCommit[],
  highlights: WeeklyCommit[],
)

Source from the content-addressed store, hash-verified

313}
314
315function renderWeeklyNotes(
316 options: WeeklyOptions,
317 range: string,
318 commits: WeeklyCommit[],
319 highlights: WeeklyCommit[],
320) {
321 return [
322 `# HyperFrames weekly digest - ${range}`,
323 "",
324 WEEKLY_REVIEW_TODO,
325 "",
326 "This digest is the editable source for the docs weekly update and social drafts.",
327 "",
328 "## Highlights",
329 "",
330 renderListOrEmpty(highlights, renderMarkdownWeeklyBullet),
331 "",
332 "## Full draft",
333 "",
334 renderGroupedChanges(commits, renderMarkdownWeeklyBullet),
335 "",
336 "## Publishing checklist",
337 "",
338 "- Remove the TODO marker after review.",
339 "- Run this from an up-to-date `main` branch when drafting the real weekly update.",
340 "- Keep the docs entry in `docs/weekly-updates.mdx` aligned with this source file.",
341 "- Edit the Discord and X drafts before posting.",
342 "- Add screenshots, rendered clips, or catalog links where they make the update clearer.",
343 "",
344 `Range: ${options.from} through ${options.to}.`,
345 ].join("\n");
346}
347
348function renderDiscordDraft(range: string, highlights: WeeklyCommit[]) {
349 return [

Callers 1

createWeeklyDraftFunction · 0.85

Calls 2

renderListOrEmptyFunction · 0.85
renderGroupedChangesFunction · 0.85

Tested by

no test coverage detected