* Prompt the user for a title for the release, if the project's configuration is defined to use a * title.
()
| 101 | * title. |
| 102 | */ |
| 103 | async promptForReleaseTitle(): Promise<string | false> { |
| 104 | const notesConfig = await this._getNotesConfig(); |
| 105 | |
| 106 | if (this.title === undefined && notesConfig.useReleaseTitle) { |
| 107 | this.title = await Prompt.input({message: 'Please provide a title for the release:'}); |
| 108 | } |
| 109 | |
| 110 | this.title ??= false; |
| 111 | |
| 112 | return this.title; |
| 113 | } |
| 114 | |
| 115 | /** Build the render context data object for constructing the RenderContext instance. */ |
| 116 | private async generateRenderContext(): Promise<RenderContext> { |
no test coverage detected