feat(pi-workflow): add human-readable run labels
This commit is contained in:
@@ -17,6 +17,7 @@ import type {
|
||||
WorkflowReportArtifact,
|
||||
WorkflowRun,
|
||||
} from "./domain.ts";
|
||||
import { deriveRunLabel } from "./run-label.ts";
|
||||
|
||||
const SNAPSHOT_VERSION = 1;
|
||||
const MAX_JSON_BYTES = 4 * 1024 * 1024;
|
||||
@@ -340,8 +341,9 @@ export class WorkflowStore {
|
||||
|
||||
async saveReport(run: WorkflowRun) {
|
||||
const lines = [
|
||||
`# pi-workflow ${run.runId}`,
|
||||
`# pi-workflow ${deriveRunLabel(run)}`,
|
||||
"",
|
||||
`- Run ID: ${run.runId}`,
|
||||
`- Status: ${run.status}`,
|
||||
`- Revision: ${run.revision}`,
|
||||
`- Mode: ${run.mode}`,
|
||||
|
||||
Reference in New Issue
Block a user