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

Method printToTerminal

ng-dev/caretaker/check/g3.ts:19–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 }
18
19 override async printToTerminal() {
20 const stats = await this.data;
21 if (!stats) {
22 return;
23 }
24 Log.info(bold('g3 branch check'));
25 if (stats.files === 0 && stats.separateFiles === 0) {
26 Log.info(`${stats.commits} commits between g3 and ${this.git.mainBranchName}`);
27 Log.info(` ${green('✔')} No sync is needed at this time`);
28 } else if (stats.separateFiles > 0) {
29 Log.info(
30 `${stats.separateFiles} primitives files changed, ${stats.files} Angular files changed, ` +
31 `${stats.insertions} insertions(+), ${stats.deletions} deletions(-) from ` +
32 `${stats.commits} commits will be included in the next sync\n` +
33 `Note: Shared primivites code has been merged. Only more Shared Primitives code can be ` +
34 `merged until the next sync is landed`,
35 );
36 } else {
37 Log.info(
38 `${stats.files} files changed, ${stats.insertions} insertions(+), ${stats.deletions} ` +
39 `deletions(-) from ${stats.commits} commits will be included in the next sync`,
40 );
41 }
42 Log.info();
43 }
44}

Callers 5

checkServiceStatusesFunction · 0.45
g3.spec.tsFile · 0.45
ci.spec.tsFile · 0.45
github.spec.tsFile · 0.45
services.spec.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected