diff --git a/.github/actions/merge-changelogs/index.js b/.github/actions/merge-changelogs/index.js index 66538b4e4e..1d1359469d 100644 --- a/.github/actions/merge-changelogs/index.js +++ b/.github/actions/merge-changelogs/index.js @@ -62,6 +62,7 @@ function parseContent(content, version, packageName) { function parseChangelog(changelog) { const packageName = getPackageName(changelog); const [latest] = splitByVersion(changelog); + (0, core_1.info)('Parsing changelog'); return parseContent(latest.content, latest.version, packageName).flat(); } function writeHeader(version) { @@ -92,6 +93,7 @@ function createNewSection(version, messages) { '\n\n'); } function mergeMessages(parsedMessages) { + (0, core_1.info)('Merging messages'); return parsedMessages.reduce((prev, curr) => { const sameMessage = prev.find(msg => msg.summary === curr.summary && msg.dependencies === curr.dependencies && @@ -109,6 +111,7 @@ async function formatChangelog(parsedChangelogs) { // const missingFromUnifiedChangelog = parsedChangelogs.filter( // summary => !unifiedChangelog.includes(`# ${summary.version}`) // ); + (0, core_1.info)('Formatting changelog'); const version = parsedChangelogs[0].version; // const versions = [...new Set(parsedChangelogs.map(msg => msg.version))]; return createNewSection(version, parsedChangelogs); diff --git a/build-packages/merge-changelogs/index.ts b/build-packages/merge-changelogs/index.ts index d7b3d1ca9c..1b2ce81cb2 100644 --- a/build-packages/merge-changelogs/index.ts +++ b/build-packages/merge-changelogs/index.ts @@ -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(); } @@ -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 => @@ -160,6 +162,7 @@ async function formatChangelog(parsedChangelogs: Change[]): Promise { // 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))];