-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Summary
The ci-release.yml workflow populates the release PR description with the previous release's changelog instead of the current one.
Root Cause
In the create-release-pr job, the PR body is generated at line 128:
BODY=$(git-cliff --latest --strip header)This runs after the release commit (line 125), but --latest resolves against existing tags. Since the new tag hasn't been created yet (that happens in tag-release after merge), --latest picks up the previous release (e.g. v0.1.0 instead of v0.1.1).
Meanwhile, the changelog file itself is generated correctly at line 84 using --tag "v${RELEASE_VERSION}", which tells git-cliff to treat the new version as if it were already tagged.
Fix
Use the same --tag flag for the PR body generation:
BODY=$(git-cliff --tag "v${RELEASE_VERSION}" --latest --strip header)This tells git-cliff to consider the new version tag when resolving --latest, producing the correct changelog for the current release.
Impact
PR #24 (v0.1.1) was affected — the body showed v0.1.0 changes. Manually corrected.