fix(formatters): dedupe push count line, link workflow run name to actions

This commit is contained in:
RhenCloud 2026-08-13 19:37:20 +08:00
parent dfb65ef70d
commit cf65111e4e
No known key found for this signature in database
GPG key ID: A574A617378C4E0B
5 changed files with 16 additions and 18 deletions

View file

@ -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],