devops.git

Module for Git-related constants and functions.

exception devops.git.GitTagError(message)[source]

Bases: Exception

Exception raised for Git tag-related errors in devops checks.

Parameters:

message (str)

Return type:

None

devops.git.get_latest_tag(config=GitConfig(tag_prefix='', empty_tag_list_allowed=True))[source]

Get the latest Git tag in the repository.

Parameters:

config (GitConfig) – The Git configuration containing the expected prefix and empty tag list allowance.

Returns:

GitTag – The latest Git tag. If no tags exist, returns GitTag(0, 0, 0, prefix).

Return type:

GitTag

Modules

tag

Module for Git tag-related constants and functions.