45 lines
1.6 KiB
TypeScript
45 lines
1.6 KiB
TypeScript
/**
|
|
* The task fields this folder reads. One shape for the list, its table, its
|
|
* filters and the row itself, declared on the component that renders it.
|
|
*/
|
|
export interface Task {
|
|
id: number | string;
|
|
title?: string;
|
|
owner?: string;
|
|
repo?: string;
|
|
repo_url?: string;
|
|
issue_number?: number;
|
|
issue_url?: string;
|
|
pr_number?: number;
|
|
pr_url?: string;
|
|
source?: string;
|
|
status?: string;
|
|
park_class?: string;
|
|
park_reason?: string;
|
|
/** The page that fixes a parked task's blocker, when the viewer may use it. */
|
|
recovery?: { blocker: string; label: string; link: string };
|
|
tokens_used?: number;
|
|
workflow?: string;
|
|
/** The exact definition the run pinned. */
|
|
workflow_definition_yaml?: string;
|
|
attempt?: number;
|
|
/** The branch this task pushed, if any. A retry that continues pushed work
|
|
* resumes it; the retry dialog disables that mode when it is empty. */
|
|
branch?: string;
|
|
/** The operator's persisted worktree choice for the next retry dispatch
|
|
* ("refresh_onto_base" or "continue_pushed_work"). The retry dialog opens
|
|
* on this value so the choice survives a reload. */
|
|
retry_mode?: string;
|
|
created_at?: string;
|
|
updated_at?: string;
|
|
actions?: string[];
|
|
/** The operator-approval gate's document, as JSON. The rereview dialog
|
|
* reads its round count; a task without one never answers a gate. */
|
|
review_gate?: string;
|
|
plan?: string;
|
|
/** What a task waiting for approval asks: "plan" or "review". */
|
|
approval?: string;
|
|
/** How many re-reviews this gate has granted, against the server's cap. */
|
|
rereview_rounds?: number;
|
|
}
|