diff --git a/CHANGES/.template.rst.jinja2 b/CHANGES/.template.rst.jinja2 index cd927e5a..24c86a9c 100644 --- a/CHANGES/.template.rst.jinja2 +++ b/CHANGES/.template.rst.jinja2 @@ -22,8 +22,7 @@ {% if definitions[category]['showcontent'] %} {% for text, values in sections[section][category].items() %} - {{ text }} -{% for value in values %}{% if value.isdigit() %} `#{{ value }} `_ -{% endif %}{% endfor %} + {{ values|join(', ') }} {% endfor %} {% else %} @@ -42,4 +41,4 @@ No significant changes. {% endif %} -{% endfor %} \ No newline at end of file +{% endfor %} diff --git a/pyproject.toml b/pyproject.toml index d1713690..47fb8bf3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -137,7 +137,35 @@ package = "aiogram" filename = "CHANGES.rst" directory = "CHANGES/" template = "CHANGES/.template.rst.jinja2" -issue_format = "{issue}" +issue_format = "`#{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] requires = ["poetry-core>=1.0.0"]