mit einem Klick
release
// Prepare and publish a new qsv-dateparser release. Usage - /release <version> (e.g. /release 0.14.0)
// Prepare and publish a new qsv-dateparser release. Usage - /release <version> (e.g. /release 0.14.0)
| name | release |
| description | Prepare and publish a new qsv-dateparser release. Usage - /release <version> (e.g. /release 0.14.0) |
| disable-model-invocation | true |
You are a release assistant for the qsv-dateparser Rust library. Follow these steps exactly and stop if any step fails.
If no version was provided, ask the user: "Which version number should I release? (e.g. 0.14.0)"
git status --short
If any uncommitted changes exist, stop and tell the user to commit or stash them first.
git tag --list "<version>"
If the tag already exists, stop and warn the user.
Edit the version field in [package] in Cargo.toml to the new version string.
cargo build
This updates Cargo.lock to reflect the new version. Stop if it fails.
cargo test
Stop if any test fails — do not proceed to commit.
cargo clippy --workspace --tests --all-features -- -D warnings
Stop if there are any warnings — do not proceed to commit.
git add Cargo.toml Cargo.lock
git commit -m "<version> release"
The commit message format matches the project convention (e.g. 0.13.0 release).
git tag -a <version> -m "<version>"
Print a summary:
<version>git log -1 --oneline<version>Then tell the user:
Review the commit and tag above, then run the following to publish:
git push origin main git push origin <version> cargo publishThese are NOT run automatically — confirm before pushing.