Skip to content

Commit

Permalink
n,
Browse files Browse the repository at this point in the history
  • Loading branch information
marikaner committed Sep 13, 2024
1 parent 56a3331 commit 99861d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/actions/merge-changelogs/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions build-packages/merge-changelogs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ function mergeMessages(parsedMessages: Change[]): Change[] {
}

async function formatChangelog(messages: Change[]): Promise<string> {
if (!messages.length) {
throw new Error('No messages found in changelogs');
}

const version = messages[0].version;
return (
formatHeader(version) +
Expand Down

0 comments on commit 99861d0

Please sign in to comment.