MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / generateAllChangelogs

Function generateAllChangelogs

scripts/get-changelog.ts:298–315  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

296}
297
298async function generateAllChangelogs() {
299 console.log(`🚀 Starting changelog generation...`)
300 // Start from the end of last week, not the current week
301 let currentWeek = getWeekEnd(subtractWeeks(new Date(), 1))
302
303 // Only generate changelogs for 3 weeks as a test
304 for (let i = 0; i < 3; i++) {
305 await generateChangelog(currentWeek)
306 currentWeek = subtractWeeks(currentWeek, 1)
307 }
308
309 await updateDocsJsonWithChangelogs()
310
311 console.log(`🎉 Finished generating up to 3 changelogs!`)
312 console.log(
313 `📅 Stopped at week ending ${formatDate(currentWeek, 'yyyy-MM-dd')}`,
314 )
315}
316
317generateAllChangelogs()

Callers 1

get-changelog.tsFile · 0.85

Calls 5

subtractWeeksFunction · 0.85
generateChangelogFunction · 0.85
formatDateFunction · 0.85
getWeekEndFunction · 0.70

Tested by

no test coverage detected