Build the render context data object for constructing the RenderContext instance.
()
| 114 | |
| 115 | /** Build the render context data object for constructing the RenderContext instance. */ |
| 116 | private async generateRenderContext(): Promise<RenderContext> { |
| 117 | const notesConfig = await this._getNotesConfig(); |
| 118 | |
| 119 | if (!this.renderContext) { |
| 120 | this.renderContext = new RenderContext({ |
| 121 | commits: this.commits, |
| 122 | github: this.git.remoteConfig, |
| 123 | version: this.version.format(), |
| 124 | groupOrder: notesConfig.groupOrder, |
| 125 | hiddenScopes: notesConfig.hiddenScopes, |
| 126 | categorizeCommit: notesConfig.categorizeCommit, |
| 127 | title: await this.promptForReleaseTitle(), |
| 128 | }); |
| 129 | } |
| 130 | return this.renderContext; |
| 131 | } |
| 132 | |
| 133 | /** Gets the configuration for the release notes. */ |
| 134 | private async _getNotesConfig() { |
no test coverage detected