absolute-version / commit-and-tag-version

Fork of the excellent standard-version. Automate versioning and CHANGELOG generation, with semver.org and conventionalcommits.org :trophy:
ISC License
402 stars 39 forks source link

Reverted commits are included in the generated CHANGELOG.md #132

Open tadayosi opened 6 months ago

tadayosi commented 6 months ago

Firstly of all, thank you very much for this great tool! I really like it.

Describe the bug When I do release with commit-and-tag-version, it smartly recognise reverted commits and decide version to increment based on the rest of semver commits.

For example, if the commit history has 3 fix: commits and one feat:, but also has one Revert "feat:..." commit, it smartly recognise the reverted one and decide the version, say, 1.0.0 -> 1.0.1, not -> 1.1.0. This is awesome!

However, when I look at the generated CHANGELOG.md, it unfortunately includes the reverted feat: item in the Features section.

Current behavior The reverted commits are still included in the generated CHANGELOG.md

Expected behavior The reverted commits should be ignored in the generated CHANGELOG.md just like when the tool decides a new version to increment: 1.0.0 -> 1.0.1

Environment

Possible Solution

Additional context