(commits: WeeklyCommit[])
| 453 | } |
| 454 | |
| 455 | function selectHighlights(commits: WeeklyCommit[]) { |
| 456 | const highlighted = commits.filter(isHighImpactCandidate); |
| 457 | const fallback = commits.filter((commit) => commit.category !== "Internal"); |
| 458 | return (highlighted.length > 0 ? highlighted : fallback).slice(0, 5); |
| 459 | } |
| 460 | |
| 461 | function selectAlsoNotable(commits: WeeklyCommit[], highlights: WeeklyCommit[]) { |
| 462 | const highlightedShas = new Set(highlights.map((commit) => commit.sha)); |