changeset-conventional-commits
Advanced tools
Changelog
0.2.5
#27 e526cfb
Thanks @mblackrittr! - fix: duplicate generation of changesets (#26)
The same changesets were generated again, because the duplicate detection failed on trailing line breaks (\n
) it got from git
.
const changesets = ...:
// Data from Commits
[
{
releases: [[Object], [Object]],
summary: "chore(root): add two test packages\n",
packagesChanged: [[Object], [Object]],
},
];
const currentChangesets = ...:
// Data from Changesets
[
{
releases: [[Object], [Object]],
summary: "chore(root): add two test packages",
packagesChanged: [[Object], [Object]],
},
];
Truncating the linebreak at line 165 of src/utils/index.ts
fixed it:
const compareChangeSet = (a: Changeset, b: Changeset): boolean => {
// return a.summary === b.summary && JSON.stringify(a.releases) == JSON.stringify(b.releases);
return (
a.summary.replace(/\n$/, "") === b.summary &&
JSON.stringify(a.releases) == JSON.stringify(b.releases)
);
};
</details>
Changelog
0.2.3
4d742d3
Thanks @iamchathu! - - Setup npm provenance.
Changelog
0.2.2
2e103e6
Thanks @jakub-hajduk! - Fixed new line markers in git command causing errorsChangelog
0.2.0
0fa4c0b
Thanks @iamchathu! - feat: :sparkles: improve the changeset difference calculationChangelog
0.1.0
#6 9f6bf0f
Thanks @iamchathu! - feat: :sparkles: add case to handle poly repository
#6 9f6bf0f
Thanks @iamchathu! - feat: :sparkles: handle duplicate changeset creation
#6 9f6bf0f
Thanks @iamchathu! - revert: :rewind: revert git push tags from ci publish script
#6 9f6bf0f
Thanks @iamchathu! - docs: :memo: update readme
#6 9f6bf0f
Thanks @iamchathu! - ci: :construction_worker: update github action to publish tags
#6 9f6bf0f
Thanks @iamchathu! - docs: :memo: add changesets