format: remove backticks from push commit short IDs

This commit is contained in:
RhenCloud 2026-08-03 09:11:28 +08:00
parent e2022de4bc
commit 5deff66b8d
No known key found for this signature in database
GPG key ID: A574A617378C4E0B

View file

@ -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 };
};