https://github.com/mlctrez/modular
https://github.com/mlctrez/modular
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mlctrez/modular
- Owner: mlctrez
- License: apache-2.0
- Created: 2022-05-01T00:53:50.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-29T17:26:19.000Z (over 2 years ago)
- Last Synced: 2025-10-17T22:51:55.886Z (9 months ago)
- Language: Go
- Size: 52.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# modular
[](https://goreportcard.com/report/github.com/mlctrez/modular)
[](https://github.com/mlctrez/modular/actions/workflows/golangci-lint.yml)
### Background
This is a hobby project for learning go-git and simplifying commit - tag - push workflows.
### Usage
modular `tag_command` "commit message"
`tag_command` indicates that an annotated tag should be created. It can be either:
* the keyword `bump` - increment the minor revision of the latest semver tag in the repo
* a semver string - the tag will be created with a prefix of `v` - `1.0.0` becomes `v1.0.0`
### Example
```bash
git add README.md
modular bump "add documentation"
```
replaces
```bash
git add README.md
git tag -l # find the last tag used and increment the minor revision
git commit -m "add documentation"
git tag -a v0.1.5 -m "v0.1.5"
git push origin master
git push origin v0.1.5
```