devops.scripts.get_latest_git_tag
CLI utilities for retrieving and incrementing Git tags.
Functions
|
Retrieve and print the latest git tag. |
|
Increase the latest git tag by major, minor, or patch. |
- devops.scripts.get_latest_git_tag.get_latest_tag_script(prefix=None, *, empty_tag_list_allowed=None)[source]
Retrieve and print the latest git tag.
- devops.scripts.get_latest_git_tag.increase_latest_tag(prefix=None, *, empty_tag_list_allowed=None, major=False, minor=False, patch=False)[source]
Increase the latest git tag by major, minor, or patch.
- Parameters:
prefix (str | None) – The expected prefix of the Git tags. If None, uses the default prefix.
empty_tag_list_allowed (bool | None) – Whether to allow an empty tag list without raising an error. If None, uses the default setting.
major (bool) – Whether to increase the major version.
minor (bool) – Whether to increase the minor version.
patch (bool) – Whether to increase the patch version.
- Return type:
None