mlctrez / modular

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

modular

Go Report golangci-lint

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

git add README.md
modular bump "add documentation"

replaces

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

About

License:Apache License 2.0


Languages

Language:Go 98.2%Language:Makefile 1.8%