How natonathan/shipyard works
Shipyard is a CLI for managing semantic versions, changelogs, and releases across single-package repositories and monorepos. Its principal workflow records markdown consignments, lets users inspect pending changes, then calculates and applies dependency-aware version bumps, updates changelogs and history, and creates Git tags. Separate branches cover repository initialization and package detection, configuration and templates, release notes and optional GitHub releases, prereleases, and self-upgrades. Edges are limited to relationships shown in excerpts or the README; unsampled command wiring is not inferred.
Main entry points: commands Commands · version Version planning · main.go CLI entry · generate.go Changelog generator
Components 17
CLI workflow
- CLI entry
cmd/shipyard/main.go - Commands
internal/commands - CLI output
internal/ui
Release domain
- Consignments
internal/consignment/read.go - Configuration
internal/config - Package detection
internal/detect/packages.go - Dependency graph
internal/graph/build.go - Version planning
internal/version - Semantic versions
pkg/semver/version.go - Changelog generator
internal/changelog/generate.go - Template engine
internal/template/load.go
Repository state
- Release history
internal/history
Integrations
- Ecosystem adapters
internal/ecosystem/python.go - Git operations
internal/git - GitHub releases
internal/github/release.go - Self-upgrade
internal/upgrade/upgrader.go
Other components
- Engineer
Connections 18
- Engineer → CLI entry: runs CLI
cmd/shipyard/main.go - CLI entry → Commands: registers commands
cmd/shipyard/main.go - Commands → Consignments: writes changes
internal/commands/add.go - Commands → Configuration: loads settings
internal/commands/add.go - Commands → Package detection: discovers packages
- Commands → Consignments: reads pending changes
internal/commands/version.go - Commands → Dependency graph: builds routes
internal/commands/version.go - Commands → Version planning: calculates bumps
internal/commands/version.go - Version planning → Semantic versions: uses versions
internal/version/apply.go - Version planning → Dependency graph: propagates changes
internal/version/propagate.go - Commands → Ecosystem adapters: updates package versions
internal/commands/version.go - Commands → Changelog generator: generates logs
internal/commands/version.go - Changelog generator → Template engine: renders templates
internal/changelog/generate.go - Commands → Release history: appends release history
internal/commands/version.go - Commands → Git operations: creates tags
internal/commands/version.go - Commands → CLI output: shows results
internal/commands/version.go - Commands → GitHub releases: creates releases
- Commands → Self-upgrade: runs upgrade