Skip to content

docs: let release-please own CHANGELOG.md - #132

Merged
houko merged 2 commits into
mainfrom
docs/release-please-changelog
Nov 14, 2026
Merged

houko merged 2 commits into
mainfrom
docs/release-please-changelog

Conversation

@houko

@houko houko commented Nov 14, 2026

Copy link
Copy Markdown
Member

Summary

CHANGELOG.md had a hand-written ## Unreleased section above the release-please sections. Nobody cleared it at release time, so it had grown to about 42 entries, with ### Bug Fixes repeated five times. Most entries were already released in 1.2.0 to 1.5.0 (FrameInterval, "support MyGo 0.7.4" and others). This PR makes release-please the only author of the changelog.

What changed

  • CHANGELOG.md: removed the whole ## Unreleased section. # Changelog and every ## [x.y.z] section are byte-for-byte unchanged.
  • AGENTS.md (Releases) and CONTRIBUTING.md: CHANGELOG.md is generated by release-please from squash-merged pull request titles and is not edited by hand. Only feat, fix, perf, deps and revert titles are listed. docs, chore, ci, test, build, refactor and style are hidden (changelog-sections in release-please-config.json).
  • docs/compatibility.md: the release-input documents used to require "a compatibility review and a changelog entry". A docs-only PR could only meet that by hand-editing the changelog, which is how the Unreleased section kept growing. The sentence now says: changes need a compatibility review; a contract change is titled feat, fix, perf or deps (with ! when breaking), so release-please lists it; a clarification titled docs is not listed; CHANGELOG.md is not edited by hand. The rule that a removal needs a changelog entry (line 25) stays, because a feat! or fix! title produces that entry. This edits process text, not the API contract. It belongs here because this PR is what makes the old wording impossible to follow.
  • AGENTS.md (docs/ bullet): matches the compatibility policy. A contract change reaches the changelog only through a listed title type, and a docs-only clarification is not listed.

What happens to the removed entries

Every removed entry was merged before v1.5.0, so none will show up in the next release.

  • Entries whose PRs had feat, fix, perf or deps titles are already in the 1.2.0 to 1.5.0 sections.
  • Entries whose PRs had hidden types are deliberately dropped from the changelog. These are chore: adapt Nodra to MyGo v0.7.4 (#93) and the six hand-written Documentation bullets. They remain in git history. The current MyGo minimum is still recorded under 1.5.0 Dependencies ("require MyGo v0.9.0 (deps: require MyGo v0.9.0 #129)").

Dependencies on the old section

None found. No test, script or workflow reads CHANGELOG.md or the edited policy text; the only hit, in nomygo_build_test.go, is a comment. SECURITY.md ("fixed releases are recorded in CHANGELOG.md") is still accurate, because security fixes use fix titles. scripts/check-api.sh asks for release notes in the PR description, which is consistent with this change. docs/release-1.0.md is the completed v1.0.0 checklist and is left as it is.

How tested

  • go test ./...: passed
  • go test -race -count=1 ./...: passed
  • go vet ./...: clean
  • go mod tidy -diff: no diff
  • golangci-lint run ./... (v2.15.0, Go 1.27.4): 0 issues
  • scripts/check-api.sh against a fresh clone of main: no API changes
  • Diffed every ## [x.y.z] section against main: identical

Compatibility

Documentation only. No API, behaviour or release configuration changes. The docs type does not trigger a release.

Screenshots

None. The site is not changed.

Remove the hand-written "## Unreleased" section. It was never cleared at release time, so it had grown to about 42 entries, most of them already released in 1.2.0 to 1.5.0, with "### Bug Fixes" repeated five times. Every release-please section is unchanged.

AGENTS.md and CONTRIBUTING.md now say CHANGELOG.md is generated by release-please from the squash-merged pull request titles and is not edited by hand, and the AGENTS.md note on docs/ no longer asks for a separate changelog entry.
docs/compatibility.md still required a changelog entry for every change to the release-input documents, which docs-only pull requests could only meet by editing CHANGELOG.md by hand. It now says a contract change is titled feat, fix, perf or deps so release-please lists it, and a docs clarification is not listed. AGENTS.md and CONTRIBUTING.md name the listed and hidden types instead of implying every title becomes a release note.
@houko
houko merged commit c4d3d9d into main Nov 14, 2026
23 checks passed
@houko
houko deleted the docs/release-please-changelog branch November 14, 2026 03:05
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