mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-22 16:11:29 +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:
parent
8681723f2a
commit
b2db616865
1 changed files with 9 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ export function formatCheckSuite(
|
||||||
status?: string;
|
status?: string;
|
||||||
app?: { name?: string };
|
app?: { name?: string };
|
||||||
html_url?: string;
|
html_url?: string;
|
||||||
|
details_url?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
const status = workflowStatus(suite.status, suite.conclusion);
|
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(
|
return buildMessage(
|
||||||
{
|
{
|
||||||
author,
|
author,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue