diff --git a/.github/workflows/pub-release.yml b/.github/workflows/pub-release.yml index 1ded7f06..d247899f 100644 --- a/.github/workflows/pub-release.yml +++ b/.github/workflows/pub-release.yml @@ -322,6 +322,11 @@ jobs: # changelog against the newest older release that HEAD descends from prev="" base="" while read -r t c; do + # the tag, not the release's target_commitish: Gitea keeps the + # commitish from creation, and after a rewrite of the public + # history (26. 11. 2026) it named commits no longer in it -- no + # base was found and the notes listed the last 20 commits + c=$(git rev-parse -q --verify "refs/tags/$t^{commit}" 2>/dev/null || echo "$c") if [ "$c" != "$SHA" ] && git merge-base --is-ancestor "$c" "$SHA" 2>/dev/null; then prev=$t base=$c break