git_ops icon indicating copy to clipboard operation
git_ops copied to clipboard

Incorrect change log generated with previous tag not fetched.

Open jimsynz opened this issue 1 year ago • 3 comments

I recently did a release of Ash that generated a change log with a heap of extra stuff in it. I'm guessing that it's because I didn't have the previous version's tag fetched locally so the diff was incorrectly generated.

This should probably be detected and the command aborted with an error.

jimsynz avatar Apr 11 '24 16:04 jimsynz

I wonder how we could detect this...while semantic versions have meaning between each other, they don't necessarily have an explicit "step" between versions enforce. i.e the next version after 2.1.0-charmander could be 2.2.0-charizard. We could apply a heuristic and warn on common patterns though?

zachdaniel avatar Apr 11 '24 16:04 zachdaniel

We could just make sure that the tag is present for the version we find in the mix file before we apply any changes.

jimsynz avatar Apr 11 '24 18:04 jimsynz

oh, right, duh. That is much simpler!

zachdaniel avatar Apr 11 '24 19:04 zachdaniel