From 861722b917c7a58724c747765dfb44e57fe5a1f6 Mon Sep 17 00:00:00 2001 From: muokwejosh-cloud Date: Fri, 28 Aug 2026 10:37:03 +0100 Subject: [PATCH] fix(rollback): format Run and Last known-good as links (#398) --- src/lib/ops/rollback.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/lib/ops/rollback.ts b/src/lib/ops/rollback.ts index 3854bffc..2f423105 100644 --- a/src/lib/ops/rollback.ts +++ b/src/lib/ops/rollback.ts @@ -147,6 +147,12 @@ export function buildIncidentTicket( ): IncidentTicketInput { const severity = classifyRollbackSeverity(event); const title = `[${severity}] Automated rollback: ${event.workflowName} ${event.conclusion} (${shortSha(event.sha)})`; + const runCell = event.runUrl ? `[Actions run](${event.runUrl})` : "n/a"; + const lastKnownCell = lastKnownGood + ? lastKnownGood.url + ? `[${shortSha(lastKnownGood.sha)}](${lastKnownGood.url}) (\`${lastKnownGood.id}\`)` + : `\`${lastKnownGood.sha}\` (\`${lastKnownGood.id}\`)` + : "_none found_"; const body = [ "## Automated deploy failure", @@ -159,9 +165,9 @@ export function buildIncidentTicket( `| Failed SHA | \`${event.sha}\` |`, `| Ref | ${event.ref} |`, `| Actor | ${event.actor} |`, - `| Run | ${event.runUrl} |`, + `| Run | ${runCell} |`, `| Outcome | ${outcome} |`, - `| Last known-good | ${lastKnownGood ? `\`${lastKnownGood.sha}\` (\`${lastKnownGood.id}\`)` : "_none found_"} |`, + `| Last known-good | ${lastKnownCell} |`, "", "This ticket was opened by rollback automation. Do not close it until:", "1. Production is serving the last known-good artifact (or a confirmed fix).",