This is an automated email from the ASF dual-hosted git repository.
uranusjr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 5326dc9b22 Render changelog sections only if they contain content
(#40660)
5326dc9b22 is described below
commit 5326dc9b22cebcd19a8cad06b82b95e77a61bbb7
Author: Amogh Desai <[email protected]>
AuthorDate: Tue Jul 9 14:16:01 2024 +0530
Render changelog sections only if they contain content (#40660)
---
.../templates/CHANGELOG_TEMPLATE.rst.jinja2 | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git
a/dev/breeze/src/airflow_breeze/templates/CHANGELOG_TEMPLATE.rst.jinja2
b/dev/breeze/src/airflow_breeze/templates/CHANGELOG_TEMPLATE.rst.jinja2
index d6d9283738..b8a966448c 100644
--- a/dev/breeze/src/airflow_breeze/templates/CHANGELOG_TEMPLATE.rst.jinja2
+++ b/dev/breeze/src/airflow_breeze/templates/CHANGELOG_TEMPLATE.rst.jinja2
@@ -20,7 +20,7 @@
{{ version }}
{{ version_header }}
-{%- if WITH_BREAKING_CHANGES %}
+{%- if WITH_BREAKING_CHANGES and classified_changes.breaking_changes %}
Breaking changes
~~~~~~~~~~~~~~~~
@@ -29,7 +29,8 @@ Breaking changes
{%- endfor %}
{%- endif %}
-{%- if MAYBE_WITH_NEW_FEATURES %}
+
+{%- if MAYBE_WITH_NEW_FEATURES and classified_changes.features %}
Features
~~~~~~~~
@@ -38,20 +39,31 @@ Features
{%- endfor %}
{%- endif %}
+
+{%- if classified_changes.fixes %}
+
Bug Fixes
~~~~~~~~~
{% for fix in classified_changes.fixes %}
* ``{{ fix.message_without_backticks | safe }}``
{%- endfor %}
+{%- endif %}
+
+
+{%- if classified_changes.misc %}
Misc
~~~~
{% for misc in classified_changes.misc %}
* ``{{ misc.message_without_backticks | safe }}``
{%- endfor %}
+{%- endif %}
+
.. Below changes are excluded from the changelog. Move them to
appropriate section above if needed. Do not delete the lines(!):
+{%- if classified_changes.other %}
{%- for other in classified_changes.other %}
* ``{{ other.message_without_backticks | safe }}``
{%- endfor %}
+{%- endif %}