(content: string, type: EntryType)
| 44 | } |
| 45 | |
| 46 | function createEntry(content: string, type: EntryType): ChangelogEntry { |
| 47 | const firstLine = content.split('\n')[0] ?? content; |
| 48 | const prNumber = extractPRNumber(firstLine); |
| 49 | return { |
| 50 | type, |
| 51 | content, |
| 52 | sortKey: extractSortKey(firstLine), |
| 53 | prNumber, |
| 54 | }; |
| 55 | } |
| 56 | |
| 57 | function parseChangelog(unreleasedLines: string[]): ParsedChangelog { |
| 58 | const importantChanges: ChangelogEntry[] = []; |
no test coverage detected