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

HISTORY.md newest position is called (unreleased) #18

Open
lipowskm opened this issue Feb 18, 2022 · 1 comment
Open

HISTORY.md newest position is called (unreleased) #18

lipowskm opened this issue Feb 18, 2022 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@lipowskm
Copy link

When making a new release, HISTORY.md newest position is called (unreleased) instead of the newest version.

I've created a simple workaround by modifying release under Makefile.

Instead of calling:

@$(ENV_PREFIX)gitchangelog  > HISTORY.md

You could perhaps do something like:

@$(ENV_PREFIX)gitchangelog | sed "s/(unreleased)/$${TAG} ($$(date +%Y-%m-%d))/g" > HISTORY.md

Furthermore, you could get rid of all the release commits from changelog:

@$(ENV_PREFIX)gitchangelog | sed "s/(unreleased)/$${TAG} ($$(date +%Y-%m-%d))/g" | grep -v "Release: version" > HISTORY.md

This way HISTORY.md contains relevant commits only.

@lipowskm lipowskm added bug Something isn't working help wanted Extra attention is needed labels Feb 18, 2022
@kevin-kruse
Copy link

Yeah, got the same question: How do you tag a git commit, but append the history to this very git commit afterwards (with gitchangelog)?

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

No branches or pull requests

2 participants