question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

generate changelog for a single tag

See original GitHub issue

Description

Hi everyone, thanks for your work. I’d like to generate my changelog with commitzen in ci, and store them in github releases instead of a whole changelog.md in my source files.

But It looks impossible now, I can only generate the full changelog, or split them manually from a specific tag.

Possible Solution

add a filter arguments to filter single tag like:

cz changelog --tag v0.0.5

additional information

There already has been a --start-rev argument that may help with this. But I think it would be better to have a way select to just a single tag for ci or other things to simplify the workflow.

This is inspired by https://github.com/git-chglog/git-chglog#cli-usag

Now I’m doing it with git-chglog "$TAG" > chglog.md and gh release create "$TAG" -F chglog.md

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
trim21commented, Jul 9, 2021

git-chglog has a syntax like 0.0.3..0.0.5 to select versions from 0.0.3 to 0.0.5

Hope this information could help https://github.com/commitizen-tools/commitizen/issues/225

Even through I don’t like this syntax

1reaction
woilecommented, Jul 8, 2021

This could be interesting. What if we used version instead of tag? Would that be okay? Of course the tag would be calculated based on the tag_format.

This way you could do:

cz changelog --version $(cz version --project)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Git changelog: how to get all changes up to a specific tag?
Is there an easy way or command to get all git commits up to a specific tag to generate an automatic changelog for...
Read more >
loopwerk/tag-changelog: Automatically generate a ... - GitHub
A GitHub Action triggered by a new (valid semver) tag getting pushed. It then fetches all the commits since the previous tag and...
Read more >
How To Automatically Generate A Helpful Changelog From ...
Creating a changelog is a usual task if a new software version is going to be released. It contains all the changes which...
Read more >
How to generate Release Notes / Changelog from Git ...
Can be done with a simple Bash one-liner: git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"%h %s".
Read more >
A Beginner's Guide to Git — What is a Changelog and How to ...
the usual way: create a text file and start to enumerate all your changes with a specific date · the developer choice (alias...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found