Skip to content

Commit

Permalink
Merge pull request pulp#97 from ATIX-AG/fix_changes_template
Browse files Browse the repository at this point in the history
Fix changelog template
  • Loading branch information
quba42 authored Feb 20, 2024
2 parents b251489 + 3bef899 commit f9e3399
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CHANGES/.TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@

{# TOWNCRIER TEMPLATE #}
{% for section, _ in sections.items() %}
{% if section %}## {{section}}
{% if section %}### {{section}}

{% endif %}

{% if sections[section] %}
{% for category, val in definitions.items() if category in sections[section]%}
### {{ definitions[category]['name'] }}
#### {{ definitions[category]['name'] }}

{% if definitions[category]['showcontent'] %}
{% for text, values in sections[section][category].items() %}
- {{ text }}
{% if values %}
{{ values|join(',\n ') }}
{% endif %}
{% endfor %}

{% else %}
Expand All @@ -33,3 +35,5 @@ No significant changes.
{% endif %}
{% endfor %}
---


0 comments on commit f9e3399

Please sign in to comment.