pawamoy / git-changelog

Automatic Changelog generator using Jinja2 templates.
https://pawamoy.github.io/git-changelog
ISC License
136 stars 34 forks source link

fix: Ignore bump on new git repo without unreleased commits #71

Closed chme closed 6 months ago

chme commented 6 months ago

If a Git repository has no unreleased commits and only one version/tag, the original tag/version was ignored and instead the version was determined by the "bump" parameter.

For example:

gitGraph
    commit id: "A"
    commit id: "B" tag: "1.1.1"

Results in:

This PR fixes this by ignoring the bump parameter if there is only one tag and the tag is on the last commit.