You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-08-10 22:31:47 +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:
@@ -1,6 +1,5 @@
|
||||
[tool.towncrier]
|
||||
#package = "mypackage"
|
||||
package_dir = "towncrier"
|
||||
package = "towncrier"
|
||||
filename = "CHANGELOG.md"
|
||||
underlines = ["-", "", ""]
|
||||
template = "towncrier/template.md"
|
||||
|
@@ -6,27 +6,10 @@
|
||||
|
||||
{% if 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() %}
|
||||
- {{ 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 %}
|
||||
{% else %}
|
||||
No significant changes.
|
||||
|
||||
|
||||
{% endif %}
|
||||
{% endfor %}
|
Reference in New Issue
Block a user