chore: initial commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import type {RunSnapshot} from '../../../types/bot/workflow/runtime.ts';
|
||||
|
||||
export type RunSummary = Omit<RunSnapshot, 'branches' | 'trigger'>;
|
||||
|
||||
/** Full trigger data is fetched on demand; live summaries never broadcast event payloads. */
|
||||
export function summarize_run({branches, trigger, ...summary}: RunSnapshot): RunSummary {
|
||||
return {...summary, trigger_available: trigger !== undefined};
|
||||
}
|
||||
Reference in New Issue
Block a user