Problems running after release commit
AlecRust opened this issue · 0 comments
AlecRust commented
Current Problem
If I run auto-changelog
(via something like release-it) before creation of a Release x.x.x
commit, the resulting changelog is as expected.
But if I run auto-changelog
after a Release x.x.x
commit, such as manually locally or within GitHub Actions (example) two problems arise:
- The
Release x.x.x
commit is listed in the changelog - The most recent version
title
is duplicated at the beginning of the changelog (example)
I'm able to work around the first issue with --ignore-commit-pattern "Release ?\d+\.\d+\.\d+"
, but I have no solution for the second issue, which happens whether --ignore-commit-pattern
is passed or not.
Proposed Solution
I wonder if auto-changelog
could support this use case of generating a changelog after a release has been committed, and prevent both issues automatically? 🙂