Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
8591c2c
Fix Docker workflow: version tags, auto-dispatch, and action upgrades
lukidoescode May 3, 2026
34b966e
Restore on.push.tags trigger for manual tag pushes
lukidoescode May 3, 2026
126f428
Fix Docker workflow: auto-dispatch and action upgrades
lukidoescode May 3, 2026
fb62b47
Fix release --convert leaving inheriting crates without a workspace v…
lukidoescode Nov 29, 2026
c895c34
List crates converted from inherited versions in release output
lukidoescode Nov 29, 2026
d24785a
Derive release tag names from a single tag naming strategy
lukidoescode Nov 29, 2026
7753510
Fix changelog comparison links ignoring the configured tag format (#121)
lukidoescode Nov 29, 2026
478d145
Add changeset for changeset-project as a dependent of changeset-chang…
lukidoescode Nov 29, 2026
cf2e191
Honor comparison-links-template for changelog comparison links
lukidoescode Nov 29, 2026
6bf29b6
Split ProjectProvider into focused traits and add LoadedProject
lukidoescode Nov 29, 2026
1f396bd
Discover the project only once per command (#77)
lukidoescode Nov 29, 2026
bce78b8
Consolidate InitOperation into one inherent impl block
lukidoescode Nov 29, 2026
54d607e
Discover the project only once per manage and additional-packages com…
lukidoescode Nov 29, 2026
dd95889
Reorder manage operation types into canonical file order
lukidoescode Nov 29, 2026
7ea88f8
Restore converted manifests byte for byte when a --convert release ro…
lukidoescode Nov 29, 2026
6f79043
Carry the inherited version conversion in one representation
lukidoescode Nov 29, 2026
c96c705
Split InitOperation by the collaborators each step needs
lukidoescode Nov 29, 2026
f41f220
Merge ProjectDiscoverer and ChangesetConfigLoader into ProjectLoader
lukidoescode Nov 29, 2026
c54fd80
Select the comparison URL formatter from ChangelogConfig in changeset…
lukidoescode Nov 29, 2026
8c30889
Trim redundant tests to one layer per behaviour
lukidoescode Nov 29, 2026
eaf7ae2
Drop changeset for removed add_git_remote test helper
lukidoescode Nov 29, 2026
859ceab
Restore Cargo.lock and changeset files from pre-saga snapshots on rol…
lukidoescode Nov 29, 2026
6d43270
Restore manifests byte for byte when writing release versions fails p…
lukidoescode Nov 29, 2026
4fd56f8
Report a successful rollback only when every restore succeeded
lukidoescode Nov 29, 2026
b0416d2
Merge remote-tracking branch 'origin/main' into lwagner/fix-docker-re…
lukidoescode Dec 2, 2026
163d975
Drop redundant homepage metadata and unused toml dependency
lukidoescode Dec 2, 2026
826af42
Show the compared value when asserting emptiness in tests
lukidoescode Dec 2, 2026
49f012d
Inherit workspace lints in every crate and fix the resulting findings
lukidoescode Dec 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .changeset/changesets/actively-promoting-grunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
changeset-saga: none
---
Drop the `homepage` metadata, which duplicated `repository`
5 changes: 5 additions & 0 deletions .changeset/changesets/amiably-excelling-finch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
category: fixed
cargo-changeset: patch
---
Show the correct `[email protected]` example for the crate-prefixed tag format in interactive `init`
4 changes: 4 additions & 0 deletions .changeset/changesets/bitingly-hospitable-spitz.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
changeset-changelog: major
---
`Changelog::add_release` now takes the comparison URL instead of repository info and a previous version, so callers decide which tag names the link uses; `expand_comparison_template` is no longer public, use `ChangelogConfig::comparison_url_formatter` or `TemplateComparisonUrl` instead
5 changes: 5 additions & 0 deletions .changeset/changesets/bleakly-enticing-emu.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
category: added
changeset-operations: minor
---
Add `ProjectContext::for_project` to derive the init prompt context from a discovered project
4 changes: 4 additions & 0 deletions .changeset/changesets/broadly-laudable-racer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
changeset-core: none
---
Drop the `homepage` metadata, which duplicated `repository`
4 changes: 4 additions & 0 deletions .changeset/changesets/cheerfully-trusting-phoebe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
changeset-operations: major
---
Split `InitOperation` by the collaborators each step needs: `InitOperation::new` now takes the manifest writer and only offers `execute_plan`, the new `InitDirectoryOperation` creates the changeset directory without writing configuration (replacing `execute_simple`), and the new `InteractiveInitPlanner` builds an `InitPlan` with interactive prompts (replacing `prepare`); `with_manifest_writer`, `with_interaction_provider`, `execute`, and `execute_simple_plan` are removed
4 changes: 4 additions & 0 deletions .changeset/changesets/deceptively-tolerant-bulbul.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
changeset-manifest: none
---
Drop the `homepage` metadata, which duplicated `repository`
4 changes: 4 additions & 0 deletions .changeset/changesets/defiantly-overruling-muskellunge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
changeset-operations: major
---
`ChangelogWriter::write_release` now takes the comparison URL instead of repository info and a previous version
5 changes: 5 additions & 0 deletions .changeset/changesets/early-initiative-antlion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
category: added
cargo-changeset: minor
---
`release` and `release --dry-run` now list the crates whose inherited version is converted to an explicit one and the `workspace.package.version` that is removed
4 changes: 4 additions & 0 deletions .changeset/changesets/evilly-effectual-langur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
changeset-version: patch
---
Mark `bump_version` as `#[must_use]` so ignoring the bumped version produces a warning
4 changes: 4 additions & 0 deletions .changeset/changesets/exultantly-expedient-euglena.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
changeset-operations: major
---
`ReleaseOperation` now requires its changeset IO to implement `FileSnapshotIO`, which also replaces `LockfileUpdater::read_lockfile`, `restore_lockfile`, and `remove_lockfile`; `OperationError::LockfileRead` and `LockfileWrite` are replaced by `FileSnapshotRead` and `FileSnapshotRestore`
4 changes: 4 additions & 0 deletions .changeset/changesets/funereally-exceeding-civet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
changeset-operations: major
---
Split `ProjectProvider` into `ProjectLoader`, `ChangesetDirectoryProvider`, and `AdditionalPackageDiscoverer` so operations and implementors depend only on what they use
4 changes: 4 additions & 0 deletions .changeset/changesets/gaily-playful-gobbler.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
changeset-operations: major
---
`AddOperation`, `StatusOperation`, `VerifyOperation`, `ReleaseOperation`, and `InitOperation` now take a `LoadedProject` instead of a start path; `InitOperation::prepare_simple` is replaced by `InitPlan::build`
4 changes: 4 additions & 0 deletions .changeset/changesets/glacially-champion-tinamou.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
changeset-git: none
---
Drop the `homepage` metadata, which duplicated `repository`
4 changes: 4 additions & 0 deletions .changeset/changesets/inaudibly-resounding-taipan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
cargo-changeset: patch
---
Discover the project only once per `add`, `verify`, `status`, `release`, and `init` invocation
4 changes: 4 additions & 0 deletions .changeset/changesets/incompletely-composed-garganey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
changeset-parse: none
---
Document the errors returned by `parse_changeset` and `serialize_changeset`
4 changes: 4 additions & 0 deletions .changeset/changesets/inductively-precious-dane.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
changeset-project: patch
---
Update `changeset-changelog` to the release that adds comparison URL formatters; no API or behavior changes in this crate
4 changes: 4 additions & 0 deletions .changeset/changesets/inexpertly-enjoyed-basilisk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
changeset-changelog: none
---
Drop the `homepage` metadata, which duplicated `repository`
5 changes: 5 additions & 0 deletions .changeset/changesets/intricately-snug-reedbuck.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
category: fixed
changeset-operations: patch
---
Rolling back a failed release now restores `Cargo.lock`, deleted changeset files, and changesets whose prerelease consumption was cleared during graduation exactly as they were, and removes a `Cargo.lock` the release created
4 changes: 4 additions & 0 deletions .changeset/changesets/languidly-awake-tarsier.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
changeset-operations: major
---
Prerelease, graduation, additional-package, and version-tracking dependency operations no longer take a project provider and accept a `LoadedProject` instead of a start path
5 changes: 5 additions & 0 deletions .changeset/changesets/loquaciously-liked-flounder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
category: fixed
cargo-changeset: patch
---
Fix `release` leaving already-updated `Cargo.toml` files behind when writing versions fails partway, and restore released manifests exactly as they were on rollback
4 changes: 4 additions & 0 deletions .changeset/changesets/luridly-familiar-alligator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
changeset-operations: none
---
Drop the `homepage` metadata, which duplicated `repository`
4 changes: 4 additions & 0 deletions .changeset/changesets/meanly-live-curassow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
changeset-project: none
---
Drop the `homepage` metadata, which duplicated `repository`
4 changes: 4 additions & 0 deletions .changeset/changesets/mirthfully-living-cassowary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
cargo-changeset: none
---
Adapt to the split project provider traits
5 changes: 5 additions & 0 deletions .changeset/changesets/mistily-sublime-lionfish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
category: fixed
cargo-changeset: patch
---
Fix `comparison-links-template` being ignored; comparison links now follow the configured template, including for self-hosted forges
5 changes: 5 additions & 0 deletions .changeset/changesets/obviously-nourishing-wapiti.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
category: added
changeset-operations: minor
---
`ReleaseOutput::inherited_version_conversion` reports which crates have their inherited version converted to an explicit one and which workspace version is removed
4 changes: 4 additions & 0 deletions .changeset/changesets/perceptively-sovereign-axolotl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
changeset-parse: none
---
Drop the `homepage` metadata, which duplicated `repository`
5 changes: 5 additions & 0 deletions .changeset/changesets/popularly-ardent-nighthawk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
category: removed
changeset-version: patch
---
Drop the unused `toml` dependency
5 changes: 5 additions & 0 deletions .changeset/changesets/possessively-limber-dog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
category: fixed
changeset-operations: patch
---
Changelog comparison links now use the same tag names as the tags created during release
4 changes: 4 additions & 0 deletions .changeset/changesets/pugnaciously-uppermost-diplodocus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
cargo-changeset: none
---
Drop the `homepage` metadata, which duplicated `repository`
5 changes: 5 additions & 0 deletions .changeset/changesets/questionably-permanent-sprat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
category: removed
changeset-operations: major
---
Remove `ChangesetWriter::restore_changeset` and `ChangesetWriter::restore_consumed_for_prerelease`, so implementors no longer need to provide them
4 changes: 4 additions & 0 deletions .changeset/changesets/reluctantly-smiling-rottweiler.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
changeset-operations: major
---
`FullManifestWriter` now also requires the new `FileSnapshotIO` trait
4 changes: 4 additions & 0 deletions .changeset/changesets/resonantly-selected-bonobo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
changeset-project: major
---
Require the new major version of `changeset-changelog`, whose `ChangelogConfig`, `ChangelogLocation` and `ComparisonLinksSetting` types appear in this crate's configuration API
5 changes: 5 additions & 0 deletions .changeset/changesets/shakily-touched-centipede.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
category: fixed
changeset-operations: patch
---
Honor `comparison-links-template` when generating changelog comparison links
5 changes: 5 additions & 0 deletions .changeset/changesets/shapelessly-classic-dog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
category: fixed
changeset-operations: patch
---
Converting inherited versions now rewrites every crate that inherits `workspace.package.version` before removing it, and rolling back a failed release, including a conversion that fails partway, restores every converted manifest byte for byte
5 changes: 5 additions & 0 deletions .changeset/changesets/sourly-commending-mammal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
category: added
changeset-operations: minor
---
Add `LoadedProject`, which discovers a project and loads its changeset configuration in one step
5 changes: 5 additions & 0 deletions .changeset/changesets/spatially-hot-sturgeon.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
category: removed
changeset-operations: major
---
Remove `WorkspaceVersionManager::read_workspace_version`, so implementors no longer need to provide it
5 changes: 5 additions & 0 deletions .changeset/changesets/spiritedly-reassuring-beta.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
category: fixed
cargo-changeset: patch
---
Fix a rolled-back `release` leaving `Cargo.lock` modified or newly created and the consumed changeset files deleted or changed
5 changes: 5 additions & 0 deletions .changeset/changesets/surely-compatible-skimmer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
category: added
changeset-changelog: minor
---
Add `ComparisonUrlFormatter`, implemented by `RepositoryInfo` for detected forges and by `TemplateComparisonUrl` for custom URL templates, and `ChangelogConfig::comparison_url_formatter` to pick between them from the configured template
4 changes: 4 additions & 0 deletions .changeset/changesets/sweetly-hopeful-starling.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
changeset-operations: none
---
Derive release tag names from a single tag naming strategy
4 changes: 4 additions & 0 deletions .changeset/changesets/tactically-settled-owlet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
cargo-changeset: patch
---
Discover the project only once per `manage` and `additional-packages` invocation
5 changes: 5 additions & 0 deletions .changeset/changesets/turgidly-big-snapper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
category: fixed
cargo-changeset: patch
---
Fix `release --convert` removing `workspace.package.version` while crates without pending changes still inherited it, and restore every converted `Cargo.toml` exactly as it was when the release is rolled back
4 changes: 4 additions & 0 deletions .changeset/changesets/unfairly-quiet-pinniped.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
cargo-changeset: none
---
Internal cleanup with no change to command-line flags or output
5 changes: 5 additions & 0 deletions .changeset/changesets/unspeakably-included-setter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
category: fixed
cargo-changeset: patch
---
Fix `release` reporting a successful rollback when restoring files failed; it now lists each step that could not be undone and every file it could not restore
5 changes: 5 additions & 0 deletions .changeset/changesets/vacantly-undaunted-bufflehead.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
category: fixed
cargo-changeset: patch
---
Fix changelog comparison links pointing at `v<version>` tags when releases are tagged `<crate>@v<version>`
5 changes: 5 additions & 0 deletions .changeset/changesets/vacuously-pleasing-squid.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
category: fixed
changeset-operations: patch
---
Rolling back a release now restores every released manifest byte for byte, including the manifests already written when writing versions fails partway
5 changes: 5 additions & 0 deletions .changeset/changesets/warily-glamorous-cat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
category: added
changeset-operations: minor
---
Add `OperationError::FileRestoreFailed` and `OperationError::StepRollbackFailed`, which list every file a rollback could not restore as a `FileRestoreFailure`
4 changes: 4 additions & 0 deletions .changeset/changesets/worriedly-soothed-fisher.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
cargo-changeset: none
---
Adapt to the split `InitOperation` API
2 changes: 1 addition & 1 deletion .github/actions/release/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This action does **not** push commits or tags. You are responsible for pushing a
| Input | Description | Default |
|-------|-------------|---------|
| `dry-run` | Preview without modifying files | `false` |
| `convert` | Convert pre-release versions to stable | `false` |
| `convert` | Convert inherited versions (`version.workspace = true`) to explicit | `false` |
| `no-commit` | Skip creating a release commit | `false` |
| `no-tags` | Skip creating git tags | `false` |
| `keep-changesets` | Keep changeset files after release | `false` |
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ inputs:
required: false
default: 'false'
convert:
description: Convert pre-release versions to stable
description: Convert inherited versions (`version.workspace = true`) to explicit
required: false
default: 'false'
no-commit:
Expand Down
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ edition = "2024"
rust-version = "1.88.0"
license = "MIT"
repository = "https://github.com/lukidoescode/cargo-changeset"
homepage = "https://github.com/lukidoescode/cargo-changeset"
authors = ["Lukas Wagner <[email protected]>"]

[workspace.lints.clippy]
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ Consume changesets and execute the release.
| Flag | Description |
|------|-------------|
| `--dry-run` | Preview changes without modifying files |
| `--convert` | Convert inherited versions (`version.workspace = true`) to explicit |
| `--convert` | Convert every inherited version (`version.workspace = true`) to an explicit version and remove `workspace.package.version` |
| `--no-commit` | Skip git commit; allows dirty working tree |
| `--no-tags` | Skip creating git tags |
| `--keep-changesets` | Do not delete changeset files after release |
Expand Down Expand Up @@ -356,7 +356,7 @@ none-bump-behavior = "promote-to-patch"
| `commit` | bool | `true` | Create a git commit on release |
| `tags` | bool | `true` | Create git tags on release |
| `keep-changesets` | bool | `false` | Keep changeset files after release |
| `tag-format` | string | `"version-only"` | `"version-only"` (`v1.0.0`) or `"crate-prefixed"` (`[email protected]`) |
| `tag-format` | string | `"version-only"` | `"version-only"` (`v1.0.0`) or `"crate-prefixed"` (`[email protected]`); workspaces always use crate-prefixed tags |
| `changelog` | string | `"root"` | `"root"` (single CHANGELOG.md) or `"per-package"` (one per crate) |
| `comparison-links` | string | `"auto"` | `"auto"`, `"enabled"`, or `"disabled"` |
| `zero-version-behavior` | string | `"effective-minor"` | `"effective-minor"` or `"auto-promote-on-major"` — see [Advanced Topics](#advanced-topics) |
Expand All @@ -365,7 +365,7 @@ none-bump-behavior = "promote-to-patch"
| `none-bump-promote-message-template` | string | `"Internal architectural changes"` | Changelog message when `none` bumps are promoted to `patch` |
| `commit-title-template` | string | `"{new-version}"` | Template for the release commit title |
| `changes-in-body` | bool | `true` | Include version transitions in the commit body |
| `comparison-links-template` | string | _(auto-detected)_ | Custom URL template with `{repository}`, `{base}`, `{target}` placeholders |
| `comparison-links-template` | string | _(auto-detected)_ | Custom comparison URL template. `{repository}` is `<owner>/<repo>` from the `origin` remote, `{base}` and `{target}` are the release tags; overrides forge detection and also works for self-hosted hosts; ignored when `comparison-links = "disabled"` |
| `dependency-bump-changelog-template` | string | ``"Updated dependency `{dependency}` to v{version}"`` | Template for auto-generated dependency bump changelog entries |
| `ignored-files` | array | `[]` | Glob patterns for files to ignore in change detection |

Expand Down Expand Up @@ -481,7 +481,7 @@ The action reads `user.name` and `user.email` from git config and passes them in
| Input | Default | Description |
|-------|---------|-------------|
| `dry-run` | `false` | Preview without modifying files |
| `convert` | `false` | Convert inherited versions to explicit |
| `convert` | `false` | Convert every inherited version (`version.workspace = true`) to an explicit version and remove `workspace.package.version` |
| `no-commit` | `false` | Skip creating a release commit |
| `no-tags` | `false` | Skip creating git tags |
| `keep-changesets` | `false` | Keep changeset files after release |
Expand Down
4 changes: 3 additions & 1 deletion crates/cargo-changeset/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
authors.workspace = true
description = "A cargo subcommand for managing changesets"
readme = "../../README.md"
Expand Down Expand Up @@ -41,3 +40,6 @@ semver = { workspace = true }
serde_json = { workspace = true }
indoc = "2.0.7"
temp-env = "0.3.6"

[lints]
workspace = true
Loading
Loading