You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(changelog): skip unreachable tags when picking previous release
`cz changelog <version>` resolves the previous-release tag by walking
the creatordate-sorted tag list. When a parallel maintenance branch
carries a tag whose creatordate sits between the current release and
the legitimate previous release, that branch's tag was wrongly
picked because it was reachable from some commit, just not from HEAD.
`get_tags()` already supports a `reachable_only` flag that appends
`git tag --merged`. Pass it from the changelog path so unreachable
parallel-line tags are filtered out before the sort, mirroring the
behaviour of `get_latest_tag_name()` which already uses
`git describe --abbrev=0 --tags` (ancestry-based) for the same
reason.
Fixes#2083
0 commit comments