diff --git a/git-cliff/cliff.toml b/git-cliff/cliff.toml index d705ea1..65da62f 100644 --- a/git-cliff/cliff.toml +++ b/git-cliff/cliff.toml @@ -14,16 +14,11 @@ header = """ # https://tera.netlify.app/docs/ body = """ {% if version %}\ - ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }} + ## Release {{ version | trim_start_matches(pat="v") }} - {{ timestamp | date(format="%Y-%m-%d") }} {% else %}\ ## [unreleased] {% endif %}\ -{% if previous %}\ - {% if previous.commit_id %} - [{{ previous.commit_id | truncate(length=7, end="") }}](https://github.com/hamster1963/Speed-Cron-Updater/commit/{{ previous.commit_id }})...\ - [{{ commit_id | truncate(length=7, end="") }}](https://github.com/hamster1963/Speed-Cron-Updater/commit/{{ commit_id }}) - {% endif %}\ -{% endif %}\ + {% for group, commits in commits | group_by(attribute="group") %} ### {{ group | upper_first }} {% for commit in commits %}