Skip to content

Commit

Permalink
Merge branch 'changelog-dependency-updates'
Browse files Browse the repository at this point in the history
  • Loading branch information
georgechoustoulakis committed Feb 21, 2024
2 parents 2580c8d + 70af81c commit acba425
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .changeset/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")}`;
}

/**
Expand Down
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 acba425

Please sign in to comment.