diff --git a/services/hackbot-ui/components/RunDetail.tsx b/services/hackbot-ui/components/RunDetail.tsx index 68b9a67faa..796bfbe0c5 100644 --- a/services/hackbot-ui/components/RunDetail.tsx +++ b/services/hackbot-ui/components/RunDetail.tsx @@ -25,6 +25,13 @@ function commentPreview(a: RunAction): string | null { return typeof text === "string" && text.trim() ? text : null; } +//Every action may have a result.url, which is a link to the external system (e.g. Bugzilla) where the action was applied. +// We surface that as an "Open" link in the actions list. +function actionUrl(a: RunAction): string | null { + const url = a.result?.url; + return typeof url === "string" && url.trim() ? url : null; +} + const POLL_MS = 4000; function formatBytes(n: number): string { @@ -271,11 +278,17 @@ export function RunDetail({ runId }: { runId: string }) {