Skip to content

feat: a released version's changelog links name its tag - #113

Merged
CaffeinatedCoder merged 1 commit into
release/2.3.0from
feat/changelog-links-at-tag
Oct 29, 2026
Merged

CaffeinatedCoder merged 1 commit into
release/2.3.0from
feat/changelog-links-at-tag

Conversation

@CaffeinatedCoder

Copy link
Copy Markdown
Owner

Closes #76

Problem

Every line of CHANGELOG.md linked its docs at blob/main. A released version's section is its packages' release notes on nuget.org and its GitHub release's notes, both frozen with the version, so a reader who followed a link later landed on that day's page, where the section may say something else or the anchor may be gone.

Change

  • CHANGELOG.md: each dated section links blob/v<version>/ in place of blob/main/. Each of its 34 links was checked to open its file, and its anchor as a heading, at that tag. The 2.1 migration guide was written after v2.1.0 (250f11a, the same day), so it is linked at that commit's full id. The 2.3.0 section, still Unreleased, links main, and gains a line under Changed.
  • ChangelogTests.A_released_version_links_the_repository_at_its_tag: a dated section's every blob/ or tree/ link into the repository names its own tag or a full commit id; a floor of 30 links read keeps the reader honest. The test reads text alone, since CI's checkouts other than the test leg have no tags.
  • CONTRIBUTING.md, Releasing, step 2: repoint the section's links at the tag when dating it. The packed nuspecs and the GitHub release read the same section, so they follow.

Tests

  • Conventions tests: 1549 passed.
  • Seeded: one link in the 2.2.0 section put back at blob/main fails the new test, naming the link; undone, it passes.

🤖 Generated with Claude Code

A dated section is its packages' release notes on nuget.org and its GitHub
release's notes, both frozen with the version, but every link pointed at
blob/main, so a reader landed on that day's page. Each released section now
links blob/v<version>/; every one of its 34 links was checked to open a file
and an anchor at that tag. The 2.1 migration guide was written after v2.1.0,
so it is linked at the commit that added it.

ChangelogTests fails on a dated section that links anything but its tag or a
full commit id (seeded: a blob/main link in 2.2.0 fails it), and CONTRIBUTING's
release step 2 says to repoint the links when dating the section.

Refs #76

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/release Versioning, changelogs, packaging and release wiring enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant