https://github.com/urethramancer/bump
Bumps the semantic version number for the git repository in the current path.
https://github.com/urethramancer/bump
Last synced: 9 months ago
JSON representation
Bumps the semantic version number for the git repository in the current path.
- Host: GitHub
- URL: https://github.com/urethramancer/bump
- Owner: Urethramancer
- License: mit
- Created: 2018-01-26T21:04:05.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-09T12:48:49.000Z (about 2 years ago)
- Last Synced: 2025-04-01T06:39:26.230Z (about 1 year ago)
- Language: Go
- Size: 45.9 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bump
Bumps the semantic version number for the git repository in the current path.
## What
Just a simple little tool made while figuring out how to use src-d's go-git package.
## How
To bump the major version:
```sh
bump major
```
or
```sh
bump ma
```
The other keywords are `minor` and `patch`, with the shortcuts `mi` and `p`.
Running it without any arguments will show the latest detected version and author variables.
## About you
Due to not having figured out a way to get git globals via go-git, the program requires two environment variables: `GITUSER` and `GITMAIL`. Set these to your name and preferred git e-mail to have tags annotated properly with you as the author.