Skip to content

ci(release): release only for changes to the published crate - #128

Merged
stewartadam merged 1 commit into
mainfrom
ci/release-only-crate-changes
Nov 26, 2026
Merged

stewartadam merged 1 commit into
mainfrom
ci/release-only-crate-changes

Conversation

@stewartadam

Copy link
Copy Markdown
Contributor

release-plz opened #127 (chore: release v0.12.1) after #125 and #126, which are both ci: changes. They touched docker-linux/, which was published as part of the crate, so release-plz saw a package change and proposed a patch release. Both commits are left out of the changelog, so the new section was empty. The PR body then showed the 0.12.0 section instead, which is what made it look like the last release's changes were being repeated.

Changes

  • Cargo.toml: replace exclude with an include list of what the crate needs: src, tests, examples, build.rs, README.md, CHANGELOG.md and the licenses. Before this, the published crate also contained docker-linux/, .cargo/config.toml, .pre-commit-config.yaml, .rumdl.toml, lychee.toml, release-plz.toml, rust-toolchain.toml, AGENTS.md and CONTRIBUTING.md.
  • release-plz.toml: set release_commits so that only feat, fix, perf, docs, refactor and revert commits, or any type marked breaking with !, open a release PR. ci, test, style, build and chore, including chore(deps), ride along with the next release.
  • CONTRIBUTING.md: notes both rules.

Testing

  • cargo package --list now lists only the files above, and cargo publish --dry-run succeeds, which builds the packaged crate.
  • I checked the regex against sample titles: ci(docker): …, ci: …, chore(deps): … and test(sender): … don't match, while fix!: …, fix(cargo)!: …, docs(readme): … and ci(release)!: … do.

After this merges, #127 can be closed. This PR is a ci change, so it won't open a new release PR on its own.


Generated by Claude Code

release-plz opened a 0.12.1 release pull request (#127) for two ci
commits, because they changed files under docker-linux/, which were
published as part of the crate. Both commits are left out of the
changelog, so the release had an empty changelog section.

- Cargo.toml: replace the exclude list with an include list of what the
  crate needs (src, tests, examples, build.rs, README, CHANGELOG,
  licenses), so repository tooling isn't published.
- release-plz.toml: set release_commits so only feat, fix, perf, docs,
  refactor and revert commits, or breaking changes, open a release pull
  request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KzaQVQTXVcK2vjorEPSjrx
@stewartadam stewartadam self-assigned this Nov 26, 2026
@stewartadam
stewartadam enabled auto-merge (squash) November 26, 2026 10:24
@stewartadam
stewartadam merged commit 4bae009 into main Nov 26, 2026
13 checks passed
@stewartadam
stewartadam deleted the ci/release-only-crate-changes branch November 26, 2026 10:25
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.

2 participants