mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-21 01:23:40 +00:00
format: remove backticks from push commit short IDs
This commit is contained in:
1 file changed
+1
-4
@@ -46,10 +46,7 @@ export function formatPush(
|
|||||||
const commitField = (c: (typeof commits)[number]): { name: string; value: string } => {
|
const commitField = (c: (typeof commits)[number]): { name: string; value: string } => {
|
||||||
const shortId = c.id?.slice(0, 7) ?? "???????";
|
const shortId = c.id?.slice(0, 7) ?? "???????";
|
||||||
const msg = c.message?.split("\n")[0].slice(0, 72) ?? t("common.no_message");
|
const msg = c.message?.split("\n")[0].slice(0, 72) ?? t("common.no_message");
|
||||||
const name =
|
const name = repo && c.id ? `[${shortId}](https://github.com/${repo}/commit/${c.id})` : `\`${shortId}\``;
|
||||||
repo && c.id
|
|
||||||
? `[\`${shortId}\`](https://github.com/${repo}/commit/${c.id})`
|
|
||||||
: `\`${shortId}\``;
|
|
||||||
return { name, value: msg };
|
return { name, value: msg };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user