mirror of
https://github.com/darksaid98/auto-changelog.git
synced 2026-12-02 22:16:06 +00:00
refactor: Changelog format (#50)
This commit is contained in:
1 parent
344a191745
commit
a5eab9701f
3 files changed
+4
-4
No files matched your search
+2
-2
@@ -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(",")})`,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user