Skip to content

Commit

Permalink
Merge pull request #727 from mih/changelog
Browse files Browse the repository at this point in the history
Changelog
  • Loading branch information
mih authored Jun 16, 2024
2 parents 5fb9054 + 3168fdf commit 067fa7c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .changelog.md.j2
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,16 @@
'type-annotation': 'Type annotation',
} %}

{# track what changelog scope we already saw for this change_key #}
{% set ns = namespace(saw_scopes=[]) %}
{% for change in changes | sort(attribute=scope) %}
{% set indent = '' %}
{% if change.scope %}
{% set indent = ' ' %}
{# write out scope, if it is new #}
{% if change.scope not in ns.saw_scopes %}
{% set ns.saw_scopes = ns.saw_scopes + [change.scope] %}
- {{ scopemap.get(change.scope, change.scope) }}:
{% endif %}
{% endif %}
{%- if change.message %}
{{ indent }}- {{ change.message }}
{%- endif %}
[[{{ change.sha1 | truncate(8, true, '') }}]](https://github.com/datalad/datalad-next/commit/{{ change.sha1 | truncate(8, true, '') }})
{# 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 %}
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
# 1.5.0 (2024-06-16)

## 💫 New features

- new support subpackage for Git's pathspecs [[8d05f1cd]](https://github.com/datalad/datalad-next/commit/8d05f1cd)
- add pathspec support to `iter_(gitworktree|submodules)()` [[7622267c]](https://github.com/datalad/datalad-next/commit/7622267c)
- `GitWorktreeFileSystemItem`:
- method to convert `GitWorktreeItem` [[30858780]](https://github.com/datalad/datalad-next/commit/30858780)
- `iter_gitworktree`:
- added submodule recursion with pathspec support [[2851ec4c]](https://github.com/datalad/datalad-next/commit/2851ec4c)
- add ability to report untracked content only [[2763b10f]](https://github.com/datalad/datalad-next/commit/2763b10f)
- `iter_submodules`:
- add `match_containing` mode [[8025b7bd]](https://github.com/datalad/datalad-next/commit/8025b7bd)

## 🐛 Bug Fixes

- `iter_gitstatus`:
- support newly added submodules [[fd197ad6]](https://github.com/datalad/datalad-next/commit/fd197ad6)
- `iter_gitstatus`:
- rectify usage of unsupported `untracked=no` mode in tests [[673e6c22]](https://github.com/datalad/datalad-next/commit/673e6c22)
- Patches for DataLad (core):
- fix `create_sibling_ria` patching [[78e29b5d]](https://github.com/datalad/datalad-next/commit/78e29b5d)

## 📝 Documentation

- Contributing guide:
- expand description of expected commit messages [[04f68b49]](https://github.com/datalad/datalad-next/commit/04f68b49)

# 1.4.1 (2024-05-22)

## 🐛 Bug Fixes
Expand Down

0 comments on commit 067fa7c

Please sign in to comment.