Update towncrier config

This commit is contained in:
Alex Root Junior 2021-08-03 23:50:10 +03:00
parent f2f276b8cf
commit 058d858607
2 changed files with 31 additions and 4 deletions

View file

@ -22,8 +22,7 @@
{% if definitions[category]['showcontent'] %} {% if definitions[category]['showcontent'] %}
{% for text, values in sections[section][category].items() %} {% for text, values in sections[section][category].items() %}
- {{ text }} - {{ text }}
{% for value in values %}{% if value.isdigit() %} `#{{ value }} <https://github.com/aiogram/aiogram/issues/{{ value }}>`_ {{ values|join(', ') }}
{% endif %}{% endfor %}
{% endfor %} {% endfor %}
{% else %} {% else %}
@ -42,4 +41,4 @@ No significant changes.
{% endif %} {% endif %}
{% endfor %} {% endfor %}

View file

@ -137,7 +137,35 @@ package = "aiogram"
filename = "CHANGES.rst" filename = "CHANGES.rst"
directory = "CHANGES/" directory = "CHANGES/"
template = "CHANGES/.template.rst.jinja2" template = "CHANGES/.template.rst.jinja2"
issue_format = "{issue}" issue_format = "`#{issue} <https://github.com/aiogram/aiogram/issues/{issue}>`_"
[[tool.towncrier.section]]
path = ""
[[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 = "Deprecations and Removals"
showcontent = true
[[tool.towncrier.type]]
directory = "misc"
name = "Misc"
showcontent = true
[build-system] [build-system]
requires = ["poetry-core>=1.0.0"] requires = ["poetry-core>=1.0.0"]