Skip to content

Commit

Permalink
fix: release links
Browse files Browse the repository at this point in the history
  • Loading branch information
sylc committed Jun 2, 2022
1 parent da414db commit 426f43a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/changelog.ts
Expand Up @@ -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
Expand Down

0 comments on commit 426f43a

Please sign in to comment.