fix(formatter): link branch and tag titles

This commit is contained in:
RhenCloud committed 2026-10-01 18:40:02 +08:00
1 parent b7fd31a665
commit 3567c6d321
7 files changed
+45 -8

No files matched your search

+5 -2
View File
@@ -4,6 +4,7 @@ import {
branchLink,
emojiPrefix,
MAX_COMMIT_SUBJECT,
refUrl,
tagLink,
type T,
buildMessage,
@@ -49,8 +50,9 @@ export function formatPush(
repo: repo ?? t("common.repository"),
emoji: em(isTagPush ? "🏷️" : "🌿"),
type: refType,
ref: isTagPush ? tagLink(baseUrl, rawRef, ref) : branchLink(baseUrl, rawRef, ref),
ref,
}),
url: refUrl(baseUrl, rawRef, refType),
color: GITHUB_COLORS.delete,
},
t,
@@ -71,8 +73,9 @@ export function formatPush(
repo: repo ?? t("common.repository"),
emoji: em(isTagPush ? "🏷️" : "🌿"),
type: refType,
ref: isTagPush ? tagLink(baseUrl, cleanRef) : branchLink(baseUrl, cleanRef),
ref: cleanRef,
}),
url: refUrl(baseUrl, cleanRef, refType),
color: GITHUB_COLORS.create,
},
t,