Means of automating the release version of a git repo using git tags
Allows you to manage versioning and releases using git tags as the source of truth. No more manual bumping of version files. CloudMitigator Semantic allows the user to control releases via commit messages. All the rest is handled for you. Just use trigger words listed below, and if a word is detected, a release will be automatically completed. Incrementing the specified number.
- Major release:
- Minor release:
- Patch release:
Trigger words can also be modified through the inclusion of a semantic.yml.
major: - "major:" - "breaking:" minor: - "minor:" patch: - "patch:"
pip install cloudmitigator_semantic
This will install a script called
semantic --help for a list of commands that can be run.
semantic version will return the latest git tag version if it has been changed, or the current git tag version if unchanged.
semantic changed will return a boolean on whether or not the version has been incremented.
Must run command within a directory that has git initialized.
If no version tag is specified then a default of v0.0.0 will be given. Make sure to tag your repo if you wish to start at a different seed number.
This module is only compatible with 'v' tagging. This means '0.0.0' will not be recognized where 'v0.0.1' will be.
This is meant to be run as part of a github action. Please see the sample implementation for an example.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size cloudmitigator_semantic-0.1.6-py3.8.egg (11.5 kB)||File type Egg||Python version 3.8||Upload date||Hashes View|
|Filename, size cloudmitigator_semantic-0.1.6-py3-none-any.whl (11.7 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size cloudmitigator_semantic-0.1.6.tar.gz (4.8 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for cloudmitigator_semantic-0.1.6-py3.8.egg
Hashes for cloudmitigator_semantic-0.1.6-py3-none-any.whl
Hashes for cloudmitigator_semantic-0.1.6.tar.gz