()
| 296 | } |
| 297 | |
| 298 | async 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 | |
| 317 | generateAllChangelogs() |
no test coverage detected