Skip to content

chore: add structured changelog and release automation - #347

Open
tisonkun wants to merge 1 commit into
mainfrom
feat/structured-changelog
Open

tisonkun wants to merge 1 commit into
mainfrom
feat/structured-changelog

Conversation

@tisonkun

@tisonkun tisonkun commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Archive the v0.31.0 (2026-12-03) release notes into CHANGELOG-OLD.md as the baseline before structured tracking, and remove unused [workspace.metadata.release] / [package.metadata.release] entries.
  • Add changes/unreleased/ and changes/releases.toml (excluded from hawkeye license header checks) along with cargo x changelog (--check, --write, and --crate <name> [--from <ver>] [--to <ver>]), wiring changelog --check into cargo x lint and xtask unit tests into cargo x test.
  • Add cargo x release prepare [<crate>=<version> ...] [--apply] to suggest or apply partial and workspace-wide releases, validating SemVer / RFC 1105 runtime dependency propagation, computing topological publish order across runtime and versioned dev-dependencies, updating Cargo.toml versions and Cargo.lock, and rewriting versioned docs.rs links and MSRV badges.
  • Update AGENTS.md and .agents/skills/release/SKILL.md to document fragment authoring, topic coalescing, and partial release preparation without requiring facade bumps solely for changelog headings.

Design Notes

  • Zero merge conflicts on feature PRs: Feature and fix pull requests only add or update changes/unreleased/<topic>.toml; root CHANGELOG.md renders committed changes/releases.toml entries during release preparation rather than accumulating concurrent ## Unreleased edits.
  • Single source of truth without prose repetition: Entries list canonical source package names in crates (or workspace = true for workspace-wide changes such as MSRV increases), allowing cargo x changelog to render compact component labels in root CHANGELOG.md and filter per-crate upgrade slices on demand.

Hand-maintaining a single prose `CHANGELOG.md` across 18 publishable crates creates merge conflicts on concurrent pull requests, repeats affected crate names in prose, and requires manually syncing version tables and hardcoded `docs.rs` links during partial releases.

Introduce a structured changelog ledger under `changes/` paired with `cargo x changelog` and `cargo x release prepare`:

- Record unreleased changes as per-topic TOML fragments under `changes/unreleased/<topic>.toml` and archive released batches in `changes/releases.toml`, deterministically rendering root `CHANGELOG.md` (verified in `cargo x lint`) and supporting per-crate slice views via `cargo x changelog --crate`.
- Automate partial and workspace-wide release preparation via `cargo x release prepare`, enforcing SemVer and RFC 1105 dependency propagation, computing topological publish order (including versioned dev-dependencies), and rewriting manifest versions, `docs.rs` versioned URLs, and root `README.md` MSRV metadata.
- Archive the `v0.31.0 (2026-12-03)` release notes into `CHANGELOG-OLD.md`, remove leftover `cargo-release` metadata, and align `AGENTS.md` and `.agents/skills/release/SKILL.md` with the new workflow.

Signed-off-by: tison <wander4096@gmail.com>
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