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

Function renderDocsUpdate

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

Source from the content-addressed store, hash-verified

286}
287
288function renderDocsUpdate(
289 options: WeeklyOptions,
290 range: string,
291 commits: WeeklyCommit[],
292 highlights: WeeklyCommit[],
293) {
294 const alsoNotable = selectAlsoNotable(commits, highlights);
295
296 return [
297 "<Update",
298 ` label="${weeklyLabel(options.from)}"`,
299 ` description="Weekly digest - ${range}"`,
300 ` tags={["Weekly update", "Highlights"]}`,
301 ">",
302 WEEKLY_REVIEW_TODO,
303 "",
304 "A curated summary of the most important HyperFrames changes this week.",
305 "",
306 renderHighlights(highlights, renderMdxWeeklyBullet),
307 "",
308 renderAlsoNotable(alsoNotable, renderMdxWeeklyBullet),
309 "",
310 "For exact versioned release notes, see the [Changelog](/changelog).",
311 "</Update>",
312 ].join("\n");
313}
314
315function renderWeeklyNotes(
316 options: WeeklyOptions,

Callers 1

createWeeklyDraftFunction · 0.70

Calls 4

selectAlsoNotableFunction · 0.85
weeklyLabelFunction · 0.85
renderHighlightsFunction · 0.85
renderAlsoNotableFunction · 0.85

Tested by

no test coverage detected