generated from datalad/datalad-extension-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.changelog.md.j2
39 lines (35 loc) · 1.3 KB
/
.changelog.md.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{% for entry in tree %}
# {{ entry.version }}{% if entry.date %} ({{ entry.date }}){% endif %}
{% for change_key, changes in entry.changes.items() %}
{% set change_key_map = {
'BREAKING CHANGE': '🪓 Breaking changes',
'doc': '📝 Documentation',
'feat': '💫 New features',
'fix': '🐛 Bug Fixes',
'test': '🛡 Tests',
'rf': '🏠 Refactorings',
'perf': '🚀 Performance improvements',
} %}
{% if change_key %}
## {{ change_key_map.get(change_key, change_key) }}
{% endif %}
{% set scopemap = {
'changelog': 'Changelog',
'contributing': 'Contributing guide',
'helpers': 'Helpers',
'sphinx': 'Rendered documentation',
'typeannotation': 'Type annotation',
} %}
{# no-scope changes #}
{% for change in changes | rejectattr("scope") %}
- {{ change.message }} [[{{ change.sha1 | truncate(8, true, '') }}]](https://github.com/datalad/datalad-remake/commit/{{ change.sha1 | truncate(8, true, '') }})
{% endfor %}
{# scoped changes #}
{% for scope, scope_changes in changes | selectattr("scope") | groupby("scope") %}
- {{ scopemap.get(scope, scope) }}:
{% for change in scope_changes %}
- {{ change.message }} [[{{ change.sha1 | truncate(8, true, '') }}]](https://github.com/datalad/datalad-remake/commit/{{ change.sha1 | truncate(8, true, '') }})
{% endfor %}
{% endfor %}
{% endfor %}
{% endfor %}