* Prepend releases notes for a version published in a given branch to the changelog in * the current Git `HEAD`. This is useful for cherry-picking the changelog. * @returns A boolean indicating whether the release notes have been prepended.
(releaseNotes: ReleaseNotes)
| 385 | * @returns A boolean indicating whether the release notes have been prepended. |
| 386 | */ |
| 387 | protected async prependReleaseNotesToChangelog(releaseNotes: ReleaseNotes): Promise<void> { |
| 388 | await releaseNotes.prependEntryToChangelogFile(); |
| 389 | Log.info( |
| 390 | green(` ✓ Updated the changelog to capture changes for "${releaseNotes.version}".`), |
| 391 | ); |
| 392 | } |
| 393 | |
| 394 | /** Checks out an upstream branch with a detached head. */ |
| 395 | protected async checkoutUpstreamBranch(branchName: string) { |
nothing calls this directly
no test coverage detected