Skip to content

Commit

Permalink
Remove empty changelog sections
Browse files Browse the repository at this point in the history
  • Loading branch information
georgechoustoulakis committed Feb 21, 2024
1 parent 2790b65 commit 70af81c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .changeset/post-process.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 70af81c

Please sign in to comment.