From 426f43adda6c487cf7d82b7c427dbc9ab7ed764a Mon Sep 17 00:00:00 2001 From: Sylvain Date: Thu, 2 Jun 2022 22:53:40 +0800 Subject: [PATCH] fix: release links --- src/changelog.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/changelog.ts b/src/changelog.ts index 902eb65..454f291 100644 --- a/src/changelog.ts +++ b/src/changelog.ts @@ -35,14 +35,14 @@ export function pushChanges( for (const commit of commits) { const { hash } = commit; const { header } = commit.cc; - const shortid = `\`${hash.slice(0, 7)}\``; + const shortid = hash.slice(0, 7); if (repo.remote && repo.remote.github && style === "md") { const { user, name } = repo.remote.github; let url = `https://github.com/${user}/${name}/`; url = `${url}commit/${hash}`; - list.push(`- ${header} ([${shortid}])`); + list.push(`- ${header} ([\`${shortid}\`])`); doc.links.push(fmtLink(shortid, url)); } else { // on github release we do not need to use url