From e703d2da59c5768fe6befa59c1b03cd6b5b406ae Mon Sep 17 00:00:00 2001 From: Shaun Arman Date: Sun, 7 Jun 2026 17:05:16 -0500 Subject: [PATCH] fix(ci): generate per-release changelog body using positional range arg git-cliff's --tag flag sets the display label for unreleased commits; it does not scope commits to a range. Passing a range string to --tag caused git-cliff to emit the full cumulative history for every release. Move the revision range from --tag to a positional argument so only commits between PREV_TAG and CURRENT_TAG appear in each release body. CHANGELOG.md generation is unaffected (still full history). --- .gitea/workflows/auto-tag.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/auto-tag.yml b/.gitea/workflows/auto-tag.yml index 6432c5d2..fec2ce1e 100644 --- a/.gitea/workflows/auto-tag.yml +++ b/.gitea/workflows/auto-tag.yml @@ -138,8 +138,8 @@ jobs: PREV_TAG=$(git tag --sort=-version:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' \ | grep -v "^${CURRENT_TAG}$" | head -1 || echo "") if [ -n "$PREV_TAG" ]; then - # Generate changelog for current tag only using tag range - git-cliff --config cliff.toml --tag "${PREV_TAG}..${CURRENT_TAG}" > /tmp/release_body.md || true + # Generate release body for this tag only (commits since previous tag) + git-cliff --config cliff.toml "${PREV_TAG}..${CURRENT_TAG}" > /tmp/release_body.md || true # Generate full CHANGELOG.md from all tags git-cliff --config cliff.toml --output CHANGELOG.md else