mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-14 10:53:30 +02:00
Merge #1131
1131: Use a more consistent towncrier template r=muhlemmer a=kaiyou ## What type of PR? Enhancement ## What does this PR do? It simply changes the towncrier template to match the existing changelog style ### Related issue(s) ## Prerequistes Before we can consider review and merge, please make sure the following list is done and checked. If an entry in not applicable, you can check it or remove it from the list. - [ ] In case of feature or enhancement: documentation updated accordingly - [ ] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/guide.html#changelog) entry file. Co-authored-by: kaiyou <pierre@jaury.eu>
This commit is contained in:
commit
8d7f335e46
@ -1,6 +1,5 @@
|
|||||||
[tool.towncrier]
|
[tool.towncrier]
|
||||||
#package = "mypackage"
|
package = "towncrier"
|
||||||
package_dir = "towncrier"
|
|
||||||
filename = "CHANGELOG.md"
|
filename = "CHANGELOG.md"
|
||||||
underlines = ["-", "", ""]
|
underlines = ["-", "", ""]
|
||||||
template = "towncrier/template.md"
|
template = "towncrier/template.md"
|
||||||
|
@ -6,27 +6,10 @@
|
|||||||
|
|
||||||
{% if sections[section] %}
|
{% if sections[section] %}
|
||||||
{% for category, val in definitions.items() if category in sections[section]%}
|
{% for category, val in definitions.items() if category in sections[section]%}
|
||||||
{{ definitions[category]['name'] }}
|
|
||||||
{{ underline * definitions[category]['name']|length }}
|
|
||||||
{% if definitions[category]['showcontent'] %}
|
|
||||||
{% for text, values in sections[section][category].items() %}
|
{% for text, values in sections[section][category].items() %}
|
||||||
- {{ text }} ({{ values|join(', ') }})
|
- {{ definitions[category]['name'] }}: {{ text }} ({{ values|join(', ') }})
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% else %}
|
|
||||||
- {{ sections[section][category]['']|join(', ') }}
|
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
{% if sections[section][category]|length == 0 %}
|
|
||||||
No significant changes.
|
|
||||||
|
|
||||||
{% else %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
|
||||||
No significant changes.
|
|
||||||
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
Loading…
Reference in New Issue
Block a user