Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

generate changelog for a single tag #399

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

Closed
trim21 opened this issue Jul 8, 2021 · 5 comments · Fixed by #400
Closed

generate changelog for a single tag #399

trim21 opened this issue Jul 8, 2021 · 5 comments · Fixed by #400
Labels
type: feature A new enhacement proposal

Comments

@trim21
Copy link
Contributor

trim21 commented Jul 8, 2021

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

@trim21 trim21 added the type: feature A new enhacement proposal label Jul 8, 2021
@Lee-W
Copy link
Member

Lee-W commented Jul 8, 2021

Do you mean you want to get the changelog between v0.0.5 and v0.0.4 by using cz changelog --tag v0.0.5?

@trim21
Copy link
Contributor Author

trim21 commented Jul 8, 2021

Do you mean you want to get the changelog between v0.0.5 and v0.0.4 by using cz changelog --tag v0.0.5?

Yes

@woile
Copy link
Member

woile commented 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)

@trim21
Copy link
Contributor Author

trim21 commented Jul 8, 2021 via email

@trim21
Copy link
Contributor Author

trim21 commented Jul 8, 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 #225

Even through I don't like this syntax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature A new enhacement proposal
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants