mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-22 16:11:29 +00:00
fix(formatters): dedupe push count line, link workflow run name to actions
This commit is contained in:
parent
dfb65ef70d
commit
cf65111e4e
5 changed files with 16 additions and 18 deletions
|
|
@ -175,13 +175,16 @@ export function formatWorkflowRun(
|
|||
});
|
||||
}
|
||||
|
||||
const runLabel = workflow.html_url
|
||||
? `[${workflow.name ?? "Workflow"} — ${status}](${workflow.html_url})`
|
||||
: `${workflow.name ?? "Workflow"} — ${status}`;
|
||||
|
||||
return buildMessage(
|
||||
{
|
||||
author,
|
||||
title: t("events.workflow_run.title", {
|
||||
repo: repo ?? t("common.repository"),
|
||||
name: workflow.name ?? "Workflow",
|
||||
conclusion: status,
|
||||
run: runLabel,
|
||||
}),
|
||||
url: workflow.html_url,
|
||||
color: GITHUB_COLORS[colorKey],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue