mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Only raise minor version if Bump Minor label is found
This commit is contained in:
parent
8e1ec6d251
commit
4f643a2928
1 changed files with 11 additions and 4 deletions
|
|
@ -8,8 +8,12 @@ import os
|
|||
|
||||
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")
|
||||
|
|
@ -28,10 +32,13 @@ 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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue