From 60648c903fd41ebbbce2759b883dcf29e48e1a3a Mon Sep 17 00:00:00 2001 From: matejcik Date: Wed, 22 Jun 2022 15:00:42 +0200 Subject: [PATCH] fix(changelog): explicitly include title in rendered template --- poetry.lock | 2 +- pyproject.toml | 2 +- python/towncrier.toml | 1 - tools/towncrier.template.md | 4 ++-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/poetry.lock b/poetry.lock index 71478b70d..6bf2e1a09 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1007,7 +1007,7 @@ testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest- [metadata] lock-version = "1.1" python-versions = "^3.7" -content-hash = "4ccf9c6db72fb71f6309c7fe7cf45911c86e44daba3c41b20d0366327f0b00af" +content-hash = "0104cc6698a15ec443594e47494b450c33ef6f4d3a1f36d6f919a783f932a3fb" [metadata.files] astroid = [ diff --git a/pyproject.toml b/pyproject.toml index 82d8b13f4..e4e931b69 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -73,7 +73,7 @@ yamllint = "^1.25.0" [tool.poetry.dev-dependencies] scan-build = "*" -towncrier = "^21.3.0" +towncrier = "^21.9.0" [build-system] requires = ["poetry>=1;<1.1", "pip>=20"] diff --git a/python/towncrier.toml b/python/towncrier.toml index 232471cae..340333f1f 100644 --- a/python/towncrier.toml +++ b/python/towncrier.toml @@ -3,7 +3,6 @@ directory = ".changelog.d" filename = "CHANGELOG.md" template = ".towncrier.template.md" start_string = "The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),\nand this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)." -title_format = "\n## [{version}] - {project_date}" issue_format = "[#{issue}]" underlines = ["", ""] diff --git a/tools/towncrier.template.md b/tools/towncrier.template.md index 38d356a10..2a5c58a02 100644 --- a/tools/towncrier.template.md +++ b/tools/towncrier.template.md @@ -1,8 +1,8 @@ + +## [{{ versiondata.version }}] ({{versiondata.date}}) {% for section, _ in sections.items() %} {% if section %}{{section}}{% endif -%} - {% if sections[section] %} - {% for category, val in definitions.items() if category in sections[section] %} ### {{ definitions[category]['name'] }}