nedbat / scriv

Changelog management tool
https://scriv.readthedocs.io
Apache License 2.0
256 stars 28 forks source link

Make previous version available to templates #95

Open DonalChilde opened 1 year ago

DonalChilde commented 1 year ago

Having the previous version number available to templates would allow for easy github compare urls in entry_title_templates.

e.g.

{% if version %}[{{ version }}](https://github.com/Account/Project/compare/{{previous_version}}...{{version}}) — {% endif %} {{ date.strftime('%Y-%m-%d') }}
{{"\n"}}
### Whats Changed in {{version}}