Expand description
Semantic releases for Jujutsu VCS repositories.
§Overview
jj-release automates versioning, changelog generation, tagging, and publishing for projects using the Jujutsu version control system.
§Example
use std::path::Path;
use jj_release_core::pipeline::{prepare_release, ReleaseContext};
use jj_release_core::manifest::CargoManifest;
use jj_release_core::config::Config;
use jj_release_core::jj::ShellBackend;
let root = Path::new(".");
let backend = ShellBackend::new(root).unwrap();
let manifest = CargoManifest;
let config = Config::default();
if let Some(release) = prepare_release(&backend, &manifest, &config, root).unwrap() {
println!("Next version: {}", release.next_version);
}Re-exports§
pub use commits::BumpKind;pub use commits::Tag;pub use config::Config;pub use config::Versioning;pub use config::WorkspaceConfig;pub use config::WorkspaceMember;pub use forge::ForgeBackend;pub use jj::JjBackend;pub use manifest::CargoManifest;pub use manifest::ManifestBackend;pub use manifest::WorkspaceManifest;pub use pipeline::MemberPlan;pub use pipeline::PreparedRelease;pub use pipeline::ReleaseContext;pub use pipeline::ReleasePlan;pub use pipeline::UnifiedPlan;pub use publish::PublishBackend;
Modules§
- bump
- Version bumps in files that aren’t project manifests: user-configured
regex replacements (README examples, constants) and
flake.nix. - commits
- Commit walking and conventional commit parsing.
- config
release.tomlconfig loading.- detect
- Environment detection for forge, language, and tool availability.
- distro
- Publishing new versions to distribution package repositories.
- errors
- Library error types and exit codes.
- forge
- Forge backends for GitHub, GitLab, Forgejo, and Gitea.
- jj
- Thin abstraction over jj operations.
- manifest
- Read and write project versions across manifest formats.
- pipeline
- Release pipeline orchestration.
- publish
- Publish backends for Cargo, npm, and no-op.
- registry
- Cargo registry checks.
- vcs
- workspace
- Workspace support for multi-crate projects.