This script is intended to continuosly create tags according to the semantic versioning specs in the current head of a git repo. This script only increments the PATCH of the previously tagged version, to increment the MAJOR or MINOR number it is necessary to manually create a tag.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Python 2.7+
- Tag the first representative commit of your repo to start the "flow" (e.g. v1.0.0)
- Copy tag.py in your project or add it as a submodule:
git submodule add git@github.com:bq/tag-flow.git
- Inside the repo, use as:
tag tag-flow/tag.py
Sample output:
# python tag-flow/tag.py
Creating new tag: v1.0.45 (previous tag for branch: v1.0.44)
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Sebastián Varela - Initial work
- Iván Martinez - Initial work
This project is licensed under the Apache 2.0 License - see the LICENSE file for details