(changelogContent: string, metadata: ReleaseMetadata)
| 322 | * Preserves existing changelog content when updating (only replaces the status/metadata sections). |
| 323 | */ |
| 324 | export function composeReleaseBody(changelogContent: string, metadata: ReleaseMetadata): string { |
| 325 | const publishSection = formatPublishedToSection(metadata.targets); |
| 326 | const metadataComment = serializeMetadata(metadata); |
| 327 | return `${changelogContent}\n\n${publishSection}\n\n${metadataComment}`; |
| 328 | } |
| 329 | |
| 330 | /** |
| 331 | * Update just the status/metadata sections of an existing release body, |
no test coverage detected
searching dependent graphs…