diff --git a/.changeset/format.js b/.changeset/format.js index 1e62dba8..78859f86 100644 --- a/.changeset/format.js +++ b/.changeset/format.js @@ -22,9 +22,9 @@ const getDependencyReleaseLine = async (changesets, dependenciesUpdated, changel if (dependenciesUpdated.length === 0) return ""; const updatedDependenciesList = dependenciesUpdated.map( - (dependency) => ` - ${dependency.name}@${dependency.newVersion}` + (dependency) => `- ${dependency.name}@${dependency.newVersion}` ); - return [['- Updated dependencies:'], ...updatedDependenciesList].join("\n"); + return `\n### 📦 Dependency Updates\n\n${updatedDependenciesList.join("\n")}`; } /** diff --git a/.changeset/post-process.js b/.changeset/post-process.js index 122025cb..b512a3e5 100644 --- a/.changeset/post-process.js +++ b/.changeset/post-process.js @@ -8,6 +8,8 @@ for (const workspace of require('../package.json').workspaces) { changelog = changelog .replace(/^### Major Changes/gm, '### 💥 Breaking Changes') .replace(/^### Minor Changes/gm, '### ✨ Features') - .replace(/^### Patch Changes/gm, '### 🐛 Issues'); + .replace(/^### Patch Changes/gm, '### 🐛 Issues') + // Remove empty sections + .replace(/\n### ([^\n]+)\n\n###/g, '\n###'); fs.writeFileSync(changelogPath, changelog); }