Skip to content

Commit

Permalink
[OPT-1125] fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfernandezvigo committed Apr 15, 2024
1 parent 9d7f60f commit fec519e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion startleft/startleft/_version/local_scheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def choose_strategy_by_branch(branch_name: str) -> callable:
:param branch_name: The name of the branch for which the version is being calculated
:return: The callable for the version strategy calculation
"""
if branch_name == 'main' or 'release/' or 'support/' in branch_name:
if branch_name == 'main' or 'release/' in branch_name or 'support/' in branch_name:
return _no_local_version_strategy
else:
return _node_strategy
Expand Down
2 changes: 1 addition & 1 deletion startleft/startleft/_version/version_scheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def choose_strategy_by_branch(branch_name: str, exact: bool) -> callable:
:param branch_name: The name of the branch for which the version is being calculated
:return: The callable for the version strategy calculation
"""
if branch_name == 'main' or 'release/' or 'support/' in branch_name or __is_tag_commit(branch_name, exact):
if branch_name == 'main' or 'release/' in branch_name or 'support/' in branch_name or __is_tag_commit(branch_name, exact):
return _tag_version_strategy
elif 'hotfix/' in branch_name:
return _patch_version_dev_commit_strategy
Expand Down

0 comments on commit fec519e

Please sign in to comment.