From 4b3f5189a81e1a54cf4fc2ca00ae33a3a9b784fc Mon Sep 17 00:00:00 2001 From: RhenCloud Date: Mon, 3 Aug 2026 09:29:15 +0800 Subject: [PATCH] fix(push): use commit message as link text --- src/formatters/push.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/formatters/push.ts b/src/formatters/push.ts index b810b6d..95bb211 100644 --- a/src/formatters/push.ts +++ b/src/formatters/push.ts @@ -47,7 +47,7 @@ export function formatPush( const shortId = c.id?.slice(0, 7) ?? "???????"; const msg = c.message?.split("\n")[0].slice(0, 72) ?? t("common.no_message"); const url = repo && c.id ? `https://github.com/${repo}/commit/${c.id}` : null; - return { name: `\`${shortId}\``, value: url ? `[${shortId}](${url}) — ${msg}` : msg }; + return { name: `\`${shortId}\``, value: url ? `[${msg}](${url})` : msg }; }; if (count <= 5) {