mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-20 17:13:49 +00:00
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.
This commit is contained in:
1 file changed
+9
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user