Skip to content

[v1.2.1] - 2026-06-19

Choose a tag to compare

@releasegen-bot releasegen-bot released this 19 Jun 16:34
· 3 commits to main since this release

Fixed

  • releasegen validate --require-changelog-entry now folds staged
    index changes into its diff against the base ref. Without this, the
    check was a no-op under pre-commit hooks (e.g. prenup), because HEAD
    is still the parent commit at that moment and a tree-only diff sees
    nothing. Local pre-commit checks now catch missing [Unreleased]
    entries just as reliably as CI does on a pushed commit. Unstaged
    worktree edits and untracked files are deliberately excluded so
    unrelated local dirt (build artifacts, half-finished edits, scratch
    files) cannot cause false failures, and so the changed-file set
    matches what FileAtIndex reads for the next-commit comparison.
  • releasegen validate --require-changelog-entry now compares the
    [Unreleased] section as it appears in the git index (the staged
    view of the next commit) rather than the working tree. Previously, a
    developer who edited CHANGELOG.md but forgot to git add it would
    see the pre-commit check pass — the worktree had the new entry — even
    though the commit being created did not, leaving the gap to be caught
    only in CI. The check now predicts the post-commit state correctly:
    unstaged changelog edits no longer satisfy the requirement, and
    git commit -a keeps working because git stages worktree changes
    before pre-commit hooks run.