Skip to content

fix(changelog): insert renovate entries at the top of ### Changed - #868

Merged
c-vigo merged 3 commits into
devfrom
bugfix/867-renovate-changelog-placement
Jul 6, 2026
Merged

c-vigo merged 3 commits into
devfrom
bugfix/867-renovate-changelog-placement

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Fixes #867. Cosmetic follow-up split out of #863 / PR #864.

Problem

insert_renovate_changelog_entry appended entries at the bottom of ## Unreleased → ### Changed. With the #### Modules sub-heading convention (#816), a Renovate dependency bump landed under #### Modules, misattributing it as a module change (seen on #862).

Fix

Insert at the top of ### Changed — a plain bullet above any #### sub-heading — reusing the existing post-heading offset, and add a trailing blank line when the section opens with a heading so Keep-a-Changelog spacing is preserved. The position-independent idempotency guard (_pr_marked_in_changed) is unchanged.

Testing (TDD)

  • RED: test_insert_above_subheading_in_changed (fails on old code — entry landed below #### Modules).
  • GREEN: fix applied; renamed test_insert_appends_to_changed_section → test_insert_prepends_to_changed_section and asserted top placement. uv run pytest packages/vig-utils/tests/test_renovate_changelog_pr.py → 12 passed.
  • Manual smoke: ran renovate-changelog-pr against a #### Modules fixture — the bullet now sits above #### Modules.
  • prek run --all-files green (incl. sync-manifest).

Rollout note

The tool runs from the baked renovate-changelog-pr console script in the published image, so this goes live for Renovate PRs after the next image rebuild that bakes the updated vig-utils.

c-vigo added 3 commits July 6, 2026 10:25
Renovate entries currently append to the bottom of ### Changed, landing under
the #### Modules sub-heading (#816 convention). Add a failing test asserting a
plain top-of-Changed bullet with Keep-a-Changelog spacing.

Refs: #867
Entries were appended at the bottom of the ### Changed block, landing under the
#### Modules sub-heading (#816) and misattributing dependency bumps as module
changes. Insert at the top of the section instead, as a plain bullet above any
#### sub-heading, adding a trailing blank line when the section opens with a
heading to preserve Keep-a-Changelog spacing.

Refs: #867
@c-vigo
c-vigo merged commit 694c979 into dev Jul 6, 2026
11 checks passed
@c-vigo
c-vigo deleted the bugfix/867-renovate-changelog-placement branch July 6, 2026 08:42
c-vigo added a commit that referenced this pull request Jul 6, 2026
## Description

The #865 changelog entry landed under `### Changed → #### Modules`
because the changelog build job runs the vig-utils **baked into the
published 0.4.0 image**, which predates the #867/#868 placement fix. The
tool fix deploys with the next image release (decision: no workflow
change needed); this PR just moves the misplaced entry to the top of
`### Changed` where the fixed tool would have put it (root + workspace
mirror via sync-manifest).

Refs #867 (original placement defect), #865 (the entry).

## Type of Change

- [x] `docs` -- Documentation only

## Changes Made

- `CHANGELOG.md` + `assets/workspace/.devcontainer/CHANGELOG.md`: moved
the numpy bullet from inside `#### Modules` to the top of `### Changed`.

## Changelog Entry

No changelog needed — this edit *is* the changelog correction; no
user-visible behavior change.

## Testing

- `just precommit` full suite green locally (exit 0).
- Docs-only change — TDD exception.
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.

1 participant