Skip to content

Commit

Permalink
Update towncrier config
Browse files Browse the repository at this point in the history
  • Loading branch information
JrooTJunior committed Aug 3, 2021
1 parent f2f276b commit 058d858
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
5 changes: 2 additions & 3 deletions CHANGES/.template.rst.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -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 }} <https://github.com/aiogram/aiogram/issues/{{ value }}>`_
{% endif %}{% endfor %}
{{ values|join(', ') }}
{% endfor %}

{% else %}
Expand All @@ -42,4 +41,4 @@ No significant changes.


{% endif %}
{% endfor %}
{% endfor %}
30 changes: 29 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,35 @@ package = "aiogram"
filename = "CHANGES.rst"
directory = "CHANGES/"
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]
requires = ["poetry-core>=1.0.0"]
Expand Down

0 comments on commit 058d858

Please sign in to comment.