feat(pi-workflow): add human-readable run labels
This commit is contained in:
@@ -170,6 +170,8 @@ export type WorkflowCommand =
|
||||
|
||||
export interface WorkflowView {
|
||||
runId: string;
|
||||
featureName?: string;
|
||||
request?: string;
|
||||
revision: number;
|
||||
status: WorkflowRun["status"];
|
||||
background: boolean;
|
||||
@@ -1072,6 +1074,8 @@ function openGate(run: WorkflowRun, gate: WorkflowGate) {
|
||||
function view(run: WorkflowRun): WorkflowView {
|
||||
return {
|
||||
runId: run.runId,
|
||||
...(run.featureName ? { featureName: run.featureName } : {}),
|
||||
request: run.request,
|
||||
revision: run.revision,
|
||||
status: run.status,
|
||||
background: run.background,
|
||||
|
||||
Reference in New Issue
Block a user