Function
selectAlsoNotable
(commits: WeeklyCommit[], highlights: WeeklyCommit[])
Source from the content-addressed store, hash-verified
| 459 | } |
| 460 | |
| 461 | function selectAlsoNotable(commits: WeeklyCommit[], highlights: WeeklyCommit[]) { |
| 462 | const highlightedShas = new Set(highlights.map((commit) => commit.sha)); |
| 463 | return commits |
| 464 | .filter((commit) => commit.category !== "Internal") |
| 465 | .filter((commit) => !highlightedShas.has(commit.sha)) |
| 466 | .slice(0, 5); |
| 467 | } |
| 468 | |
| 469 | function isHighImpactCandidate(commit: WeeklyCommit) { |
| 470 | return HIGHLIGHT_CATEGORIES.has(commit.category) && !isEditorialOnlyScope(commit.scope); |
Tested by
no test coverage detected