feat(check): add build log link for failed Cloudflare checks

Failed check_run messages now include a Build Log field linking to
check_run.details_url (the Cloudflare build log page).
This commit is contained in:
RhenCloud committed 2026-08-27 21:43:26 +08:00
1 parent 1375db9a20
commit 8681723f2a
3 files changed
+11

No files matched your search

+9
View File
@@ -171,6 +171,7 @@ export function formatCheckRun(
name?: string;
conclusion?: string;
html_url?: string;
details_url?: string;
status?: string;
output?: { title?: string; summary?: string };
};
@@ -196,6 +197,14 @@ export function formatCheckRun(
});
}
if (status === "failure" && checkRun.details_url) {
fields.push({
name: t("fields.build_log"),
value: `[${t("fields.build_log")}](${checkRun.details_url})`,
inline: false,
});
}
return buildMessage(
{
author,