* Formats manually-authored release notes as a "What's Changed" section.
(content: string)
| 158 | * Formats manually-authored release notes as a "What's Changed" section. |
| 159 | */ |
| 160 | function formatWhatsChangedSection(content: string): string { |
| 161 | if (/^### What's Changed\s*$/im.test(content)) { |
| 162 | return content; |
| 163 | } |
| 164 | |
| 165 | return `### What's Changed\n\n${content}`; |
| 166 | } |
| 167 | |
| 168 | /** |
| 169 | * Deletes the manually-authored release notes file after consuming it. |