mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-21 01:23:40 +00:00
fix(formatter): link branch and tag titles
This commit is contained in:
7 files changed
+45
-8
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user