mirror of
https://github.com/containers/podman-compose.git
synced 2025-08-09 05:54:34 +02:00
scripts: Add script to create release notes
Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
This commit is contained in:
33
scripts/Changelog-template.jinja
Normal file
33
scripts/Changelog-template.jinja
Normal file
@ -0,0 +1,33 @@
|
||||
{% for section, _ in sections|dictsort(by='key') %}
|
||||
{% set underline = "-" %}
|
||||
{% if section %}
|
||||
{{section}}
|
||||
{{ underline * section|length }}{% set underline = "~" %}
|
||||
|
||||
{% endif %}
|
||||
{% if sections[section] %}
|
||||
{% for category, val in definitions|dictsort if category in sections[section]%}
|
||||
|
||||
{{ definitions[category]['name'] }}
|
||||
{{ underline * definitions[category]['name']|length }}
|
||||
|
||||
{% for text, values in sections[section][category]|dictsort(by='value') %}
|
||||
- {{ text }}
|
||||
{% endfor %}
|
||||
|
||||
{% if sections[section][category]|length == 0 %}
|
||||
|
||||
No significant changes.
|
||||
|
||||
|
||||
{% else %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
|
||||
No significant changes.
|
||||
|
||||
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
(venv) p12@exec-desktop:~/cod
|
14
scripts/make_release_notes.sh
Executable file
14
scripts/make_release_notes.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "Usage: make_release_notes.sh VERSION"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
VERSION=$1
|
||||
towncrier build --version "$VERSION" --yes
|
||||
git mv "docs/Changelog-new.md" "docs/Changelog-$VERSION.md"
|
||||
git add "newsfragments/"
|
||||
git commit -m "Release notes for $VERSION"
|
Reference in New Issue
Block a user