From 5deff66b8dbc99a155e51f9e8721f1124eb590cc Mon Sep 17 00:00:00 2001 From: RhenCloud Date: Mon, 3 Aug 2026 09:11:28 +0800 Subject: [PATCH] format: remove backticks from push commit short IDs --- src/formatters/push.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/formatters/push.ts b/src/formatters/push.ts index 17b175b..8274b58 100644 --- a/src/formatters/push.ts +++ b/src/formatters/push.ts @@ -46,10 +46,7 @@ export function formatPush( const commitField = (c: (typeof commits)[number]): { name: string; value: string } => { const shortId = c.id?.slice(0, 7) ?? "???????"; const msg = c.message?.split("\n")[0].slice(0, 72) ?? t("common.no_message"); - const name = - repo && c.id - ? `[\`${shortId}\`](https://github.com/${repo}/commit/${c.id})` - : `\`${shortId}\``; + const name = repo && c.id ? `[${shortId}](https://github.com/${repo}/commit/${c.id})` : `\`${shortId}\``; return { name, value: msg }; };