(commits: RawCommit[])
| 103 | } |
| 104 | |
| 105 | export function bucket(commits: RawCommit[]): CategoryBuckets { |
| 106 | const out: CategoryBuckets = { breaking: [], features: [], fixes: [], perf: [], docs: [], internal: [], other: [] }; |
| 107 | for (const c of commits) { |
| 108 | const cls = classifyCommit(c); |
| 109 | out[cls.category].push(cls); |
| 110 | } |
| 111 | return out; |
| 112 | } |
| 113 | |
| 114 | const SECTION_LABELS: Record<ReleaseCategory, string> = { |
| 115 | breaking: 'Breaking changes', |
no test coverage detected