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

Function createWeeklyDraft

scripts/changelog-weekly.ts:208–218  ·  view source on GitHub ↗
(options: WeeklyOptions, commits: WeeklyCommit[])

Source from the content-addressed store, hash-verified

206}
207
208export function createWeeklyDraft(options: WeeklyOptions, commits: WeeklyCommit[]): WeeklyDraft {
209 const range = formatDateRange(options.from, options.to);
210 const highlights = selectHighlights(commits);
211
212 return {
213 docsUpdate: renderDocsUpdate(options, range, commits, highlights),
214 weeklyNotes: renderWeeklyNotes(options, range, commits, highlights),
215 discordDraft: renderDiscordDraft(range, highlights),
216 xDraft: renderXDraft(range, highlights),
217 };
218}
219
220function outputWeeklyDraft(options: WeeklyOptions, draft: WeeklyDraft) {
221 if (!options.write) {

Callers 2

mainFunction · 0.85

Calls 6

formatDateRangeFunction · 0.85
selectHighlightsFunction · 0.85
renderWeeklyNotesFunction · 0.85
renderDiscordDraftFunction · 0.85
renderXDraftFunction · 0.85
renderDocsUpdateFunction · 0.70

Tested by

no test coverage detected