Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerating changelog after taging changes the date #796

Open
1 task done
alerque opened this issue Aug 13, 2024 · 1 comment
Open
1 task done

Regenerating changelog after taging changes the date #796

alerque opened this issue Aug 13, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@alerque
Copy link
Contributor

alerque commented Aug 13, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Description of the bug

I've been using git cliff -t vX.Y.Z as part of a build system as a way to lint the release and make sure everything got generated properly. This works fine the day-of, but fails if run later. The generated changelog always has the current date even if the tag and release already exists.

I understand there is a cart-before-the-horse issue at play here, but it seems like if a tag exists, the release date should be derived from the tag rather than the current time. Notably this is only a problem for the current release, it does not affect the backlog of generated releases all the rest of which are untouched.

Steps To Reproduce

Rebuild a changelog while on a tagged release on a day later than the changelog was originally generated.

Expected behavior

Release date to be derived from the tag if extant, current date if not.

Screenshots / Logs

No response

Software information

git-cliff 2.4.0

Additional context

No response

@orhun
Copy link
Owner

orhun commented Sep 15, 2024

Hey, thanks for reporting!

This should be fixed via #861, can you test it out? 🐻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants