mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-25 15:08:12 +08:00
Update template and use a more power full configuration
This commit is contained in:
parent
eea18fb71c
commit
d6363a6e1b
@ -1 +1 @@
|
||||
User defined top level spaces ordering (#3501)
|
||||
User defined top level spaces ordering
|
@ -15,19 +15,8 @@
|
||||
|
||||
{% if sections[section] %}
|
||||
{% for category, val in definitions.items() if category in sections[section]%}
|
||||
{% if definitions[category]['name'] == "Features" %}
|
||||
Features ✨:
|
||||
{% elif definitions[category]['name'] == "Bugfixes" %}
|
||||
Bugfixes 🐛:
|
||||
{% elif definitions[category]['name'] == "Deprecations and Removals" %}
|
||||
SDK API changes ⚠️:
|
||||
{% elif definitions[category]['name'] == "Improved Documentation" %}
|
||||
Improved Documentation 📚:
|
||||
{% elif definitions[category]['name'] == "Misc" %}
|
||||
Other changes:
|
||||
{% else %}
|
||||
{{ definitions[category]['name'] }}
|
||||
{% endif %}
|
||||
{{ underline * definitions[category]['name']|length }}
|
||||
{% if definitions[category]['showcontent'] %}
|
||||
{% for text, values in sections[section][category].items() %}
|
||||
- {{ text }} ({{ values|join(', ') }})
|
||||
|
@ -1,7 +1,31 @@
|
||||
[tool.towncrier]
|
||||
directory = "changelog.d"
|
||||
filename = "CHANGES.md"
|
||||
name = "Changes in Element"
|
||||
# Note: there is a bug, if I use title_format, the title is printed twice
|
||||
# title_format = "Changes in Element {version} ({project_date})"
|
||||
template="tools/towncrier/template.md"
|
||||
directory = "changelog.d"
|
||||
filename = "CHANGES.md"
|
||||
name = "Changes in Element"
|
||||
template = "tools/towncrier/template.md"
|
||||
issue_format = "[#{issue}](https://github.com/vector-im/element-android/issues/{issue})"
|
||||
|
||||
[[tool.towncrier.type]]
|
||||
directory = "feature"
|
||||
name = "Features ✨"
|
||||
showcontent = true
|
||||
|
||||
[[tool.towncrier.type]]
|
||||
directory = "bugfix"
|
||||
name = "Bugfixes 🐛"
|
||||
showcontent = true
|
||||
|
||||
[[tool.towncrier.type]]
|
||||
directory = "doc"
|
||||
name = "Improved Documentation 📚"
|
||||
showcontent = true
|
||||
|
||||
[[tool.towncrier.type]]
|
||||
directory = "removal"
|
||||
name = "SDK API changes ⚠️"
|
||||
showcontent = true
|
||||
|
||||
[[tool.towncrier.type]]
|
||||
directory = "misc"
|
||||
name = "Other changes"
|
||||
showcontent = true
|
||||
|
Loading…
Reference in New Issue
Block a user