(notes: Array<[string, string[]]>)
| 7 | } from '../../utils/releaseNotes.js' |
| 8 | |
| 9 | function formatReleaseNotes(notes: Array<[string, string[]]>): string { |
| 10 | return notes |
| 11 | .map(([version, notes]) => { |
| 12 | const header = `Version ${version}:` |
| 13 | const bulletPoints = notes.map(note => `· ${note}`).join('\n') |
| 14 | return `${header}\n${bulletPoints}` |
| 15 | }) |
| 16 | .join('\n\n') |
| 17 | } |
| 18 | |
| 19 | export async function call(): Promise<LocalCommandResult> { |
| 20 | // Try to fetch the latest changelog with a 500ms timeout |