Skip to content

Commit 655bd57

Browse files
authored
UI changelog (#1597)
* create changelog using towncrier AAH-1228 * create a changelog for the UI. Issue: AAH-1228
1 parent c4635b0 commit 655bd57

File tree

5 files changed

+48
-0
lines changed

5 files changed

+48
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@ test/cypress/videos/*
2828
test/cypress.env.json
2929
test/results
3030
test/cypress/fixtures/example.json
31+
32+
# pycache files
33+
*pyc

CHANGES/.TEMPLATE.rst

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{# TOWNCRIER TEMPLATE #}
2+
{% for section, _ in sections.items() %}
3+
{% set underline = underlines[0] %}{% if section %}{{section}}
4+
{{ underline * section|length }}{% set underline = underlines[1] %}
5+
6+
{% endif %}
7+
8+
{% if sections[section] %}
9+
{% for category, val in definitions.items() if category in sections[section]%}
10+
{{ definitions[category]['name'] }}
11+
{{ underline * definitions[category]['name']|length }}
12+
13+
{% if definitions[category]['showcontent'] %}
14+
{% for text, values in sections[section][category].items() %}
15+
- {{ text }}
16+
{{ values|join(',\n ') }}
17+
{% endfor %}
18+
19+
{% else %}
20+
- {{ sections[section][category]['']|join(', ') }}
21+
22+
{% endif %}
23+
{% if sections[section][category]|length == 0 %}
24+
No significant changes.
25+
26+
{% else %}
27+
{% endif %}
28+
29+
{% endfor %}
30+
{% else %}
31+
No significant changes.
32+
33+
34+
{% endif %}
35+
{% endfor %}
36+
----

CHANGES/1228.task

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Create a changelog for the UI.

ansible-hub-ui/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "4.5.0dev"

pyproject.toml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[tool.towncrier]
2+
package = "ansible-hub-ui"
3+
filename = "CHANGES.rst"
4+
directory = "CHANGES/"
5+
title_format = "{version} ({project_date})"
6+
template = "CHANGES/.TEMPLATE.rst"
7+
issue_format = "`AAH-{issue} <https://issues.redhat.com/browse/AAH-{issue}>`_"

0 commit comments

Comments
 (0)