MCPcopy Create free account
hub / github.com/angular/dev-infra / generateRenderContext

Method generateRenderContext

ng-dev/release/notes/release-notes.ts:116–131  ·  view source on GitHub ↗

Build the render context data object for constructing the RenderContext instance.

()

Source from the content-addressed store, hash-verified

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() {

Callers 4

getGithubReleaseEntryMethod · 0.95
getChangelogEntryMethod · 0.95

Calls 3

_getNotesConfigMethod · 0.95
promptForReleaseTitleMethod · 0.95
formatMethod · 0.45

Tested by

no test coverage detected