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

Method promptForReleaseTitle

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

* Prompt the user for a title for the release, if the project's configuration is defined to use a * title.

()

Source from the content-addressed store, hash-verified

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

Callers 1

generateRenderContextMethod · 0.95

Calls 1

_getNotesConfigMethod · 0.95

Tested by

no test coverage detected