refactor: Changelog format (#50)

This commit is contained in:
Ardalan Amini authored and GitHub committed 2022-04-29 12:39:37 +04:30
1 parent 344a191745
commit a5eab9701f
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -36,7 +36,7 @@ export async function generate(input: ChangelogInputI): Promise<string> {
title = trim(title).replace(
PR_REGEX,
(match, pull) => `[${match}](${repoUrl}/pull/${pull})`,
(match, pull) => `${repoUrl}/pull/${pull}`,
);
commits[type] = commits[type] ?? {};
@@ -74,7 +74,7 @@ export async function generate(input: ChangelogInputI): Promise<string> {
for (const { title, commits } of categoryGroup) {
changelog.push(
`${baseLine}* ${title} (${commits
.map((sha) => `[${sha.slice(0, 8)}](${repoUrl}/commit/${sha})`)
.map((sha) => `${repoUrl}/commit/${sha}`)
.join(",")})`,
);
}