From 9cc3dfa90643ee5cfb1694c5f9e2b7b47a08f248 Mon Sep 17 00:00:00 2001 From: StandingPad Animations Date: Sun, 20 Aug 2023 15:11:04 -0500 Subject: [PATCH 1/2] Added 'rc' as an ignore filter MCprep is moving towards a new 5-stage development cycle (Stage 0 to 4), where Stage 4 involves creating release candidates for testing and feedback purposes. Release candiates use the format "#.#.#.#-rc-#" for tags, to make them distinct from regular releases. The addon updater should ignore these release candidates, as stability is not guranteed. --- MCprep_addon/addon_updater_ops.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MCprep_addon/addon_updater_ops.py b/MCprep_addon/addon_updater_ops.py index 3d79f59c..2a13a790 100644 --- a/MCprep_addon/addon_updater_ops.py +++ b/MCprep_addon/addon_updater_ops.py @@ -1284,6 +1284,10 @@ def skip_tag_function(self, tag): # if 'beta' in tag.lower(): # return True # ---- write any custom code above, return true to disallow version --- # + + # Ignore release candidates + if 'rc' in tag.lower(): + return True if self.include_branches: for branch in self.include_branch_list: From 95cd259e654d358afec1b1eb8b7efaf5fee29f06 Mon Sep 17 00:00:00 2001 From: StandingPad Date: Mon, 21 Aug 2023 20:17:40 -0500 Subject: [PATCH 2/2] Added more general checks Instead of checking for just rc, we also check for alpha and beta Co-authored-by: Patrick W. Crawford --- MCprep_addon/addon_updater_ops.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MCprep_addon/addon_updater_ops.py b/MCprep_addon/addon_updater_ops.py index 2a13a790..677b74e3 100644 --- a/MCprep_addon/addon_updater_ops.py +++ b/MCprep_addon/addon_updater_ops.py @@ -1286,8 +1286,10 @@ def skip_tag_function(self, tag): # ---- write any custom code above, return true to disallow version --- # # Ignore release candidates - if 'rc' in tag.lower(): - return True + skip_if_present = ['rc', 'alpha', 'beta'] + for skip_name in skip_if_present: + if skip_name in tag.lower(): + return True if self.include_branches: for branch in self.include_branch_list: