Repository navigation
ci(release): release only for changes to the published crate - #128
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
release-plz opened #127 (
chore: release v0.12.1) after #125 and #126, which are bothci:changes. They toucheddocker-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: replaceexcludewith anincludelist of what the crate needs:src,tests,examples,build.rs,README.md,CHANGELOG.mdand the licenses. Before this, the published crate also containeddocker-linux/,.cargo/config.toml,.pre-commit-config.yaml,.rumdl.toml,lychee.toml,release-plz.toml,rust-toolchain.toml,AGENTS.mdandCONTRIBUTING.md.release-plz.toml: setrelease_commitsso that onlyfeat,fix,perf,docs,refactorandrevertcommits, or any type marked breaking with!, open a release PR.ci,test,style,buildandchore, includingchore(deps), ride along with the next release.CONTRIBUTING.md: notes both rules.Testing
cargo package --listnow lists only the files above, andcargo publish --dry-runsucceeds, which builds the packaged crate.ci(docker): …,ci: …,chore(deps): …andtest(sender): …don't match, whilefix!: …,fix(cargo)!: …,docs(readme): …andci(release)!: …do.After this merges, #127 can be closed. This PR is a
cichange, so it won't open a new release PR on its own.Generated by Claude Code