Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

CI: change the version bump logic #2919

Merged
merged 3 commits into from
Mar 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions tools/ci_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@

def get_release_type_github(Log, github_token):
# print(Log)
minor_labels = ["type: feature", "type: deprecated"]
patch_labels = ["type: enhancement", "type: bug"]
minor_labels = ["Bump Minor"]
# patch_labels = [
# "type: enhancement",
# "type: bug",
# "type: deprecated",
# "type: Feature"]

g = Github(github_token)
repo = g.get_repo("pypeclub/OpenPype")
Expand All @@ -28,9 +32,12 @@ def get_release_type_github(Log, github_token):

if any(label in labels for label in minor_labels):
return "minor"

if any(label in labels for label in patch_labels):
else:
return "patch"

# TODO: if all is working fine, this part can be cleaned up eventually
# if any(label in labels for label in patch_labels):
# return "patch"

return None

Expand Down