From 96d83f9d8654b7096de50285666fa9aef1275564 Mon Sep 17 00:00:00 2001 From: Patrick Fernie Date: Sat, 23 Mar 2024 08:24:52 -0400 Subject: [PATCH] ci: remove `--topo-order` argument to `git-cliff` --- release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release.sh b/release.sh index b958073..6f06459 100755 --- a/release.sh +++ b/release.sh @@ -18,7 +18,7 @@ if [ -n "$1" ]; then msg="# managed by release.sh" sed "s/^version = .* $msg$/version = \"${1#v}\" $msg/" -i Cargo.toml # update the changelog - git cliff --topo-order --sort newest --unreleased --tag "$1" --prepend CHANGELOG.md + git cliff --sort newest --unreleased --tag "$1" --prepend CHANGELOG.md git diff echo -e -n "\e[33mProceed? \e[0m" read -n 1 -s -p "[y/N] " proceed @@ -39,7 +39,7 @@ if [ -n "$1" ]; then - {% if commit.breaking %}(breaking) {% endif %}{{ commit.message | upper_first }} ({{ commit.id | truncate(length=7, end=\"\") }})\ {% endfor %} {% endfor %}" - changelog=$(git cliff --topo-order --sort newest --unreleased --strip all) + changelog=$(git cliff --sort newest --unreleased --strip all) git tag "$1" -m "Release $1" -m "$changelog" git show -q "$1" else