Skip to content

fix(vigutils): prepare-changelog finalize fails on re-run with a changed --tag-prefix #1073

Closed

Description

@gerchowl

Found during review of release PR #1068.

prepare-changelog finalize is designed to be re-runnable on a reused release branch. But if it runs a second time with a different --tag-prefix (e.g. first "", then "v"), it raises ValueError: the already-finalized heading doesn't match the finalized pattern for the new prefix, and it no longer matches the TBD pattern either.

Failing without corrupting is acceptable, but the docstring's "reuse branch" idempotency claim doesn't cover a changed prefix.

Suggested: either normalize/re-finalize across a prefix change, or emit a clearer error naming the mismatch, and update the docstring to state the invariant (prefix must be stable across re-runs).

File: packages/vig-utils/src/vig_utils/prepare_changelog.py:461

Activity

  1. added
    bug
    priority:low
    area:ci
    effort:small
    on Jul 14, 2026
  2. c-vigo commented on Jul 14, 2026

    @c-vigo
    Contributor

    Shipped in 1.2.0 via PR #1082.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cibugeffort:smallpriority:low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions