Setup release notes build using towncrier

merge-requests/682/head
Povilas Kanapickas 2022-01-18 22:12:17 +02:00
rodzic 3f955dd532
commit 3e1de72bcb
3 zmienionych plików z 66 dodań i 0 usunięć

2
NEWS
Wyświetl plik

@ -5,6 +5,8 @@
semi-automatically.
-->
<!--(towncrier release notes start)-->
## New with 1.0.32 (released 2021-02-14)
### Backends

Wyświetl plik

@ -0,0 +1,30 @@
{% for section, _ in sections|dictsort(by='key') %}
{% set underline = "-" %}
{% if section %}
----- {{section}}
{% endif %}
{% if sections[section] %}
{% for category, val in definitions|dictsort if category in sections[section]%}
### {{ definitions[category]['name'] }}
{% 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 %}

34
towncrier.toml 100644
Wyświetl plik

@ -0,0 +1,34 @@
[tool.towncrier]
package = ""
directory = "newsfragments"
filename = "NEWS"
template = "tools/NEWS.template.jinja"
title_format = "\n## New with {version} (released {project_date})\n"
start_string = "<!--(towncrier release notes start)-->"
[[tool.towncrier.section]]
path = ""
[[tool.towncrier.type]]
directory = "security"
name = "Security fixes"
showcontent = false
[[tool.towncrier.type]]
directory = "backend"
name = "Backends"
showcontent = true
[[tool.towncrier.type]]
directory = "frontend"
name = "Frontends"
showcontent = true
[[tool.towncrier.type]]
directory = "removal"
name = "Deprecations and removals"
showcontent = true
[[tool.towncrier.type]]
directory = "misc"
name = "Miscellaneous"
showcontent = true