scaffold.flyte.git

Functions

get_branch_identifier(→ str)

Get version from git repository.

Module Contents

scaffold.flyte.git.get_branch_identifier(random_suffix: bool = False) str

Get version from git repository.

By default, the version is branch-sha. If there are untracked files, the suffix -dirty is appended. If random_suffix=True a random suffix is appended.

Kwargs:

random_suffix (bool): whether a random suffix should be appended.