release_utils
assert_branch(branch, step)
¶
Assert that a release step is done in the proper branch.
This can only happen in release/x.y.z
or hotfix/x.y.z
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
branch |
str
|
branch name to verify. |
required |
step |
str
|
the release step name. |
required |
Returns:
Type | Description |
---|---|
Res[tuple[str, str]]
|
An Issue if the current branch is not a release/hotfix else the |
Res[tuple[str, str]]
|
release type and version to release/hotfix. |