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

Method printToTerminal

ng-dev/caretaker/check/github.ts:105–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103 }
104
105 override async printToTerminal() {
106 const queryResults = await this.data;
107 if (!queryResults) {
108 return;
109 }
110 Log.info(bold('Github Tasks'));
111 const minQueryNameLength = Math.max(...queryResults.map((result) => result.queryName.length));
112 for (const queryResult of queryResults) {
113 Log.info(`${queryResult.queryName.padEnd(minQueryNameLength)} ${queryResult.count}`);
114
115 if (queryResult.count > 0) {
116 Log.info(queryResult.queryUrl);
117 queryResult.matchedUrls.forEach((url) => Log.info(`- ${url}`));
118 if (queryResult.count > MAX_RETURNED_ISSUES) {
119 Log.info(`... ${queryResult.count - MAX_RETURNED_ISSUES} additional matches`);
120 }
121 }
122 }
123 Log.info();
124 }
125}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected