Skip to content

ci: automate changelog rollover during tagged release (R591) - #608

Merged
ryacub merged 1 commit into
mainfrom
codex/r591-changelog-release-auto
Mar 21, 2026
Merged

ci: automate changelog rollover during tagged release (R591)#608
ryacub merged 1 commit into
mainfrom
codex/r591-changelog-release-auto

Conversation

@ryacub

@ryacub ryacub commented Mar 21, 2026

Copy link
Copy Markdown
Owner

Objective

Automate changelog finalization for tagged releases so ## Unreleased is rolled into the released version and reset after release creation.

Closes #605

Scope

  • Add scripts/finalize_changelog_release.py to:
    • no-op if target release section already exists
    • move first ## Unreleased content into ## [version] - YYYY-MM-DD
    • recreate an empty ## Unreleased section template
  • Update .github/workflows/build_push.yml to:
    • finalize changelog in the tag workspace before extracting release notes
    • checkout main after release and persist the same changelog rollover commit
    • skip commit when no changelog diff exists (idempotent reruns)

Verification

  • ./gradlew spotlessCheck
  • ./gradlew :app:compileDebugKotlin
  • Script smoke/idempotency check:
    • run scripts/finalize_changelog_release.py twice on a temp changelog copy
    • confirm only one ## [<version>] section is created

Risk

T2. Changes release workflow behavior and writes back to main during tag releases. Risk mitigated by idempotent script behavior and no-op checks when version section already exists.

Rollback

Revert this PR to restore prior release behavior (no automatic changelog rollover).

@ryacub
ryacub merged commit 645a492 into main Mar 21, 2026
6 checks passed
ryacub pushed a commit that referenced this pull request Mar 21, 2026
Version bump type: fork build
Auto-generated after merging PR #608: ci: automate changelog rollover during tagged release (R591)
@ryacub
ryacub deleted the codex/r591-changelog-release-auto branch March 21, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

R591: automate changelog finalization on tagged release

1 participant