Comments (3)
@Rebekah-Chuang, unfortunately there is not a current method for only prepending the latest release information. I do believe there was a previous ticket that mentioned this but it seems nothing specifically came of it. I agree it would be a useful feature to provide methods of adoption of this project to an existing project.
from python-semantic-release.
Hi @codejedi365, sorry for the late response, thank you so much for replying, I think the ticket you mentioned was #722. Hope to see this feature in the future!
from python-semantic-release.
@Rebekah-Chuang, given the complexities discussed in #722, I'm not sure if or when this feature would actually be solved, but there may be an alternative.
You could use the changelog template directory to write a custom template which does not loop through all of the versions as the provided default does. Jinja2 also provides the ability to import other files and macros. Potentially, you could correct your changelog for the previous versions and store that as a file such as 3.x_CHANGELOG.md
. Then in your custom changelog template abort the loop when the version matches 3.x
and just import the other file and append it. Unfortunately, Jinja does not support "break" so you likely will need to write a macro to filter out all versions below your threshold (ex. 4.x
). This is a bit exploratory as I have not done this myself but thinking about it now I believe it accomplishes what you need.
from python-semantic-release.
Related Issues (20)
- multibranch release version incorrectly incremented HOT 4
- Help not shown if semantic-release not configured HOT 2
- GitHub action raises stderr: 'error: src refspec main matches more than one HOT 3
- multibranch releases convert semver version to pep440 version HOT 2
- Relative template_dir path causes TemplateNotFound error in monorepo configuration HOT 3
- Updating version_variables that follow tag_format HOT 1
- Using with `rye build` HOT 2
- Wrong way to add asset ? HOT 3
- Unclear how to release a patch of an old version HOT 5
- Should I have access to version in my custom changelog-template? HOT 2
- Undocumented custom domain setting
- Add config option to disable Changelog HOT 3
- feat(GHA): add dependency spec to gha definition HOT 1
- Github Actions does not bump the version while `semantic-release publish` does. HOT 2
- `version_toml` config to support complex dependencies format in `project.toml` HOT 2
- missing end-of-line character when writing to $GITHUB_OUTPUT HOT 2
- Update rich version dependency HOT 1
- Let a matrix as input in directory option of the action HOT 2
- How to upload the package to AWS Codeartifact instead if PyPi?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-semantic-release.