semver

command
v0.24.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

usr/bin/env go run "$0" "$@"; exit

bin/semver/next.go - next semver from conventional commits since the last tag.

bin/semver/next.go                      # last tag..HEAD
bin/semver/next.go v0.1.0 v0.1.0..HEAD  # explicit tag + range
prints: v0.1.1 | v0.2.0 | v1.0.0 | none

Bump rules (conventional commits):

BREAKING CHANGE / feat!   -> major
feat:                      -> minor
fix:, perf:, refactor:,... -> patch
no commits in range        -> none

NOTE: never run `gofmt -w` on this file — it breaks the shebang.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL