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

Method printToTerminal

ng-dev/caretaker/check/ci.ts:76–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74 }
75
76 override async printToTerminal() {
77 const data = await this.data;
78 const minLabelLength = Math.max(...data.map((result) => result.label.length));
79 Log.info(bold(`CI`));
80 data.forEach((result) => {
81 if (result.active === false) {
82 Log.debug(`No active release train for ${result.name}`);
83 return;
84 }
85 const label = result.label.padEnd(minLabelLength);
86 if (result.status === null) {
87 Log.info(`${result.name} branch was not found on CI`);
88 } else if (result.status === 'passing') {
89 Log.info(`${label} ${green('✔')}`);
90 } else if (result.status === 'pending') {
91 Log.info(`${label} ${yellow('⏺')}`);
92 } else {
93 Log.info(`${label} ${red('✘')}`);
94 }
95 });
96 Log.info();
97 }
98}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected