{% for entry in tree %} # {{ entry.version }}{% if entry.date %} ({{ entry.date }}){% endif %} {% for change_key, changes in entry.changes.items() %} {% if change_key %} ## {{ change_key }} {% endif %} {% set scopemap = { 'changelog': 'Changelog', 'contributing': 'Contributing guide', 'helpers': 'Helpers', 'patch': 'Patches for DataLad (core)', 'sphinx': 'Rendered documentation', 'typeannotation': 'Type annotation', 'type-annotation': 'Type annotation', } %} {# no-scope changes #} {% for change in changes | rejectattr("scope") %} - {{ change.message }} [[{{ change.sha1 | truncate(8, true, '') }}]](https://github.com/datalad/datalad-next/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-next/commit/{{ change.sha1 | truncate(8, true, '') }}) {% endfor %} {% endfor %} {% endfor %} {% endfor %}