https://github.com/survivorbat/go-bumpy
Go-bumpy is a simple tool for bumping the version of your go project based on Semantic Versioning. Not only does it look at existing tags in your repository, it also reads the version from your go.mod file to determine what the major version of your project is.
https://github.com/survivorbat/go-bumpy
bump bumpy git go gobumpy golang gomod mod semantic tag tagging tags tool version versions
Last synced: 8 months ago
JSON representation
Go-bumpy is a simple tool for bumping the version of your go project based on Semantic Versioning. Not only does it look at existing tags in your repository, it also reads the version from your go.mod file to determine what the major version of your project is.
- Host: GitHub
- URL: https://github.com/survivorbat/go-bumpy
- Owner: survivorbat
- License: mit
- Created: 2023-01-26T11:23:56.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-23T11:21:30.000Z (almost 2 years ago)
- Last Synced: 2024-12-31T00:27:50.447Z (9 months ago)
- Topics: bump, bumpy, git, go, gobumpy, golang, gomod, mod, semantic, tag, tagging, tags, tool, version, versions
- Language: Go
- Homepage: https://pkg.go.dev/github.com/survivorbat/go-bumpy
- Size: 45.9 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🐫 Go Bumpy
[](https://github.com/survivorbat/go-bumpy/actions/workflows/test.yaml)

Go-bumpy is a simple tool for bumping the version of your go project based on [Semantic Versioning](https://semver.org/).
Not only does it look at existing tags in your repository, it also
reads the version from your `go.mod` file to determine what the major version of your project is.It is also capable of pushing the new tag to your remote repository.
## ⬇️ Installation
`go install github.com/survivorbat/go-bumpy/cmd/bumpy@latest`
Or check out the [releases](https://github.com/survivorbat/go-bumpy/releases).
## 📋 Usage
`bumpy [-minor] [-prefix="something/"] [-module="./src"] [-push="origin"] `
It will output the new tag name to stdout and logging to stderr.
### Options
- `-prefix` Prefix the result tag and strip the prefix from the existing tags when searching, if set, skips any tags without this prefix
- `-minor` Bump the minor version instead of the patch version
- `-push` Push the new tag to the specified remote. If not specified, the tag will not be pushed.
- `-module` If your `go.mod` is not in the root of the directory, you can specify the path here### Examples
| Module Suffix | Latest Tag | Output |
|---------------|------------|--------|
| None | None | v0.0.0 |
| None | v2.5.0 | v2.5.1 |
| v3 | None | v3.0.0 |
| v3 | v3.2.0 | v3.2.1 |
| v3 | v5.4.3 | v3.0.0 |## 🔭 Plans
None yet