( options: WeeklyOptions, range: string, commits: WeeklyCommit[], highlights: WeeklyCommit[], )
| 313 | } |
| 314 | |
| 315 | function 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 | |
| 348 | function renderDiscordDraft(range: string, highlights: WeeklyCommit[]) { |
| 349 | return [ |
no test coverage detected