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

configure changelog.md.j2 to have only final releases in the generated changelog.md #837

Closed
intex46 opened this issue Feb 14, 2024 · 3 comments
Labels

Comments

@intex46
Copy link

intex46 commented Feb 14, 2024

Python version: 3.10
python_semantic_release==8.5.2

Hello, can you provide me an example of changelog.md.j2 in order to include changes made in pre-releases and alpha-releases in the final release section

Actual Changelog.md:

# CHANGELOG

v0.2.1 (2024-02-14)
Chore
chore(release): release v0.2.1 [skip ci]
v0.2.1-rc.1 (2024-02-14)
Build
build: blablablah
Ci
ci: blablablah
Fix
fix: fix bug1 and bug2
v0.2.0 (2024-02-13)

The desired Changelog.md:

# CHANGELOG

v0.2.1 (2024-02-14)
Chore
chore(release): release v0.2.1 [skip ci]
Build
build: blablablah
Ci
ci: blablablah
Fix
fix: fix bug1 and bug2
v0.2.0 (2024-02-13)
@codejedi365
Copy link
Contributor

codejedi365 commented Feb 15, 2024

I don't believe this is doable easily from a template. You would likely have to write a fairly complex jinja macro to accomplish this.

I do believe this is a duplicate of a recent request, #817. I have not had the cycles to put towards this idea yet although I fully agree it should be the default.

@intex46
Copy link
Author

intex46 commented Feb 16, 2024

hello, thanks for your feedback, is it a new feature to consider ?

@codejedi365
Copy link
Contributor

Yes, when I finish with the current multi branch bugs, I will implement something like this.

@intex46 intex46 closed this as completed Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants