From 3dabebb5fa35c43d18de7cc9ba343f93642d7d03 Mon Sep 17 00:00:00 2001 From: James Turley Date: Mon, 15 Mar 2021 13:11:05 +0000 Subject: [PATCH] Add links to TaskOutput type Signed-off-by: James Turley Signed-off-by: James Turley --- .../scaffolder/src/components/hooks/useEventStream.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/scaffolder/src/components/hooks/useEventStream.ts b/plugins/scaffolder/src/components/hooks/useEventStream.ts index 210fd8cb9b..958c3d192e 100644 --- a/plugins/scaffolder/src/components/hooks/useEventStream.ts +++ b/plugins/scaffolder/src/components/hooks/useEventStream.ts @@ -19,6 +19,11 @@ import { scaffolderApiRef, LogEvent } from '../../api'; import { ScaffolderTask, Status } from '../../types'; import { Subscription, useApi } from '@backstage/core'; +type OutputLink = { + title: string; + url: string; +}; + type Step = { id: string; status: Status; @@ -26,7 +31,10 @@ type Step = { startedAt?: string; }; -type TaskOutput = { entityRef?: string } & { [key in string]: string }; +type TaskOutput = { + entityRef?: string; + links?: OutputLink[]; +} & { [key in string]: string }; export type TaskStream = { loading: boolean;