(check_name, tag_prefix='v', pattern=None)
Get the version string for the given check.
Get the version string for the given check.
Get the version string for the given check .
def get_version_string(check_name, tag_prefix='v', pattern=None):
    """
    Get the version string for the given check.
    """
    # Check the version file of the integration if available
    # Otherwise, get the latest SemVer git tag for the project
    if check_name:
        version = VERSION.search(read_version_file(check_name))
        if version:
            return version.group(1)
    else:
        return get_latest_tag(pattern=pattern, tag_prefix=tag_prefix)
def get_version_string ( check_name , tag_prefix = 'v' , pattern = None ) : # Check the version file of the integration if available # Otherwise, get the latest SemVer git tag for the project if check_name : version = VERSION . search ( read_version_file ( check_name ) ) if version : return version . group ( 1 ) else : return get_latest_tag ( pattern = pattern , tag_prefix = tag_prefix )