Closed stevendavis closed 1 year ago
The configuration file supports multi-line values, so you can just use actual newlines. If I understand your use case correctly:
HISTORY.rst
:
1.0.0
-------------------
- first major bump
0.0.2
-------------------
- added a new entry
0.0.1
-------------------
- created changelog
.bumpversion.cfg
:
[bumpversion]
current_version = 1.0.0
[bumpversion:file:HISTORY.rst]
replace = {new_version}
-------------------
coming soon
{current_version}
Thank you! You're right. Multi-line values work as expected.
I'm trying to update the version in the change log with this configuration:
How can I make bumpversion convert the \n to real newlines? Is there a better way to do this?