do not show empty change lists

If there are no changes, do not show the header and an empty list.

If there are no diff stats, do not show that section.

Change-Id: Icfa1c8bcb954a4dd870a45bec7b4160df6ccf842
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2016-06-22 10:53:07 -04:00
parent 4a6f1c0d07
commit 15ec2e7e4c
1 changed files with 4 additions and 1 deletions

View File

@ -103,7 +103,7 @@ For more details, please see below.
# This will just be replaced with template values (no wrapping applied).
CHANGE_RELEASE_TPL = """{% if reno_notes %}{{ reno_notes }}{% endif %}
{{ change_header }}{% if skip_requirement_merges %}
{% if changes %}{{ change_header }}{% if skip_requirement_merges %}
NOTE: Skipping requirement commits...
{%- endif %}
@ -111,6 +111,8 @@ NOTE: Skipping requirement commits...
{% for change in changes -%}
{{ change }}
{% endfor %}
{%- endif %}
{% if diff_stats %}
{% if not first_release -%}
Diffstat (except docs and test files)
-------------------------------------
@ -118,6 +120,7 @@ Diffstat (except docs and test files)
{% for change in diff_stats -%}
{{ change }}
{% endfor %}
{%- endif %}
{% if requirement_changes %}
Requirements updates
--------------------