Merge pull request #1576 from pikasTech/fix/1571-closeout-blocker-render
Pipelines as Code CI / hwlab-web-probe-sentinel-jd01- Success

fix: render PaC closeout blockers as table
This commit is contained in:
Lyon
2026-07-07 08:38:45 +08:00
committed by GitHub
@@ -913,7 +913,9 @@ function renderCloseout(result: Record<string, unknown>): RenderedCliResult {
"CICD DIAGNOSIS",
...table(["OK", "CODE", "PHASE", "HINT"], [[boolText(diagnostics.ok !== false), stringValue(diagnostics.code), stringValue(diagnostics.phase), compactLine(stringValue(diagnostics.hint))]]),
"",
Object.keys(blocker).length === 0 ? "BLOCKER\n-" : ["BLOCKER", table(["CODE", "REASON"], [[stringValue(blocker.code), compactLine(stringValue(blocker.reason))]])].join("\n"),
...(Object.keys(blocker).length === 0
? ["BLOCKER", "-"]
: ["BLOCKER", ...table(["CODE", "REASON"], [[stringValue(blocker.code), compactLine(stringValue(blocker.reason))]])]),
"",
"NEXT",
` status: ${stringValue(record(result.next).status)}`,