From b2db61686521eac654aaa4215ce649526a534027 Mon Sep 17 00:00:00 2001 From: RhenCloud Date: Thu, 27 Aug 2026 21:33:46 +0800 Subject: [PATCH] fix(check): show build log link for failed check suites too The Build Log field was only added to check_run messages; failed check_suite messages now also link check_suite.details_url. --- server/lib/formatters/check.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/lib/formatters/check.ts b/server/lib/formatters/check.ts index 2863f2c..31965d7 100644 --- a/server/lib/formatters/check.ts +++ b/server/lib/formatters/check.ts @@ -28,6 +28,7 @@ export function formatCheckSuite( status?: string; app?: { name?: string }; html_url?: string; + details_url?: string; }; const status = workflowStatus(suite.status, suite.conclusion); @@ -68,6 +69,14 @@ export function formatCheckSuite( }); } + if (status === "failure" && suite.details_url) { + fields.push({ + name: t("fields.build_log"), + value: `[${t("fields.build_log")}](${suite.details_url})`, + inline: false, + }); + } + return buildMessage( { author,