MCPcopy Create free account
hub / github.com/code-pushup/cli / getLabelFromReports

Function getLabelFromReports

packages/core/src/lib/compare.ts:164–173  ·  view source on GitHub ↗
(reports: Diff<Report>)

Source from the content-addressed store, hash-verified

162}
163
164function getLabelFromReports(reports: Diff<Report>): string | undefined {
165 if (
166 reports.before.label &&
167 reports.after.label &&
168 reports.before.label === reports.after.label
169 ) {
170 return reports.after.label;
171 }
172 return undefined;
173}

Callers 1

compareReportFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected