Skip to content

Commit

Permalink
logs
Browse files Browse the repository at this point in the history
  • Loading branch information
marikaner committed Sep 12, 2024
1 parent 7efe0a0 commit 33a2332
Show file tree
Hide file tree
Showing 2 changed files with 6 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.

3 changes: 3 additions & 0 deletions build-packages/merge-changelogs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ function parseContent(
function parseChangelog(changelog: string): Change[] {
const packageName = getPackageName(changelog);
const [latest] = splitByVersion(changelog);
info('Parsing changelog');
return parseContent(latest.content, latest.version, packageName).flat();
}

Expand Down Expand Up @@ -139,6 +140,7 @@ function createNewSection(version: string, messages: Change[]): string {
}

function mergeMessages(parsedMessages: Change[]): Change[] {
info('Merging messages');
return parsedMessages.reduce((prev, curr) => {
const sameMessage = prev.find(
msg =>
Expand All @@ -160,6 +162,7 @@ async function formatChangelog(parsedChangelogs: Change[]): Promise<string> {
// const missingFromUnifiedChangelog = parsedChangelogs.filter(
// summary => !unifiedChangelog.includes(`# ${summary.version}`)
// );
info('Formatting changelog');
const version = parsedChangelogs[0].version;
// const versions = [...new Set(parsedChangelogs.map(msg => msg.version))];

Expand Down

0 comments on commit 33a2332

Please sign in to comment.