fix(cicd): preserve refresh evidence in live status
This commit is contained in:
@@ -253,7 +253,15 @@ function evidenceRowsForFollower(item: Record<string, unknown>): unknown[][] {
|
||||
]);
|
||||
}
|
||||
const refresh = asOptionalRecord(evidence.refresh);
|
||||
if (refresh !== null) rows.push([item.id, "refresh", stringOrNull(refresh.status) ?? "-", `${shortSha(stringOrNull(refresh.sourceCommit))}/${boolMatch(refresh.pipelineRefMatches)}/${boolMatch(refresh.pipelineSpecMatches)}`, stringOrNull(refresh.pipeline) ?? "-"]);
|
||||
rows.push([
|
||||
item.id,
|
||||
"refresh",
|
||||
refresh === null ? "missing" : stringOrNull(refresh.status) ?? "-",
|
||||
refresh === null
|
||||
? stringOrNull(evidence.refreshBoundedReason) ?? "-"
|
||||
: `${shortSha(stringOrNull(refresh.sourceCommit))}/${boolMatch(refresh.pipelineRefMatches)}/${boolMatch(refresh.pipelineSpecMatches)}`,
|
||||
refresh === null ? "-" : stringOrNull(refresh.pipeline) ?? "-",
|
||||
]);
|
||||
return rows;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user