MCPcopy Index your code
hub / github.com/caarlos0/svu

github.com/caarlos0/svu @v3.4.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.4.1 ↗ · + Follow
66 symbols 179 edges 6 files 18 documented · 27%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

svu Logo

semantic version utility


Release Software License Build status Go Doc GoReportCard Conventional Commits

semantic version utility (svu) is a small helper for release scripts and workflows.

It provides utility commands and functions to increase specific portions of the version. It can also figure the next version out automatically by looking through the git history.

[!TIP] Read the spec for more information.

usage

Check svu --help for the list of sub-commands and flags.

next, n

This is probably the command you'll use the most.

It checks your git log, and automatically increases and returns the new version based on this table:

Commit message Tag increase
chore: foo Nothing
fix: fixed something Patch
feat: added new button to do X Minor
fix: fixed thing xyz

BREAKING CHANGE: this will break users because of blah | Major | | fix!: fixed something | Major | | feat!: added blah | Major |

[!TIP] You can create an alias to create tags automatically:

bash alias gtn='git tag $(svu next)'

configuration

Every flag option can also be set in a .svu.yml in the current directory/repository root folder, for example:

tag.prefix: ""
always: true
v0: true

Names are the same as the flags themselves.

install

Packaging status

macOS

brew install svu

linux/apt

echo 'deb [trusted=yes] https://apt.fury.io/caarlos0/ /' | sudo tee /etc/apt/sources.list.d/caarlos0.list
sudo apt update
sudo apt install svu

linux/yum

echo '[caarlos0]
name=caarlos0
baseurl=https://yum.fury.io/caarlos0/
enabled=1
gpgcheck=0' | sudo tee /etc/yum.repos.d/caarlos0.repo
sudo yum install svu

docker

docker run --rm -v $PWD:/tmp --workdir /tmp ghcr.io/caarlos0/svu --help

go install

go install github.com/caarlos0/svu/v3@latest

manually

Or download one from the releases tab and install manually.

stargazers over time

Stargazers over time


Logo art and concept by @carinebecker.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

String
called by 29
internal/git/git.go
nextVersion
called by 21
internal/svu/svu.go
findNext
called by 12
internal/svu/svu.go
version
called by 6
pkg/svu/svu.go
cmd
called by 6
pkg/svu/svu.go
DescribeTag
called by 4
internal/git/git.go
run
called by 4
internal/git/git.go
Changelog
called by 3
internal/git/git.go

Shape

Function 58
Struct 4
TypeAlias 2
FuncType 1
Method 1

Languages

Go100%

Modules by API surface

pkg/svu/svu.go19 symbols
internal/git/git_test.go15 symbols
internal/svu/svu.go13 symbols
internal/git/git.go8 symbols
internal/svu/svu_test.go7 symbols
main.go4 symbols

For agents

$ claude mcp add svu \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact