fix: testing branch

This commit is contained in:
Rick Lan
2025-12-24 14:16:27 +08:00
parent 473d671f2b
commit 38038203ea

View File

@@ -370,7 +370,7 @@ class Updater:
m = re.match(r'^(\d+)\.(\d+)\.(\d+)', name)
# Logic:
# 1. Allow exactly 'pre-build'
# 1. Allow exactly 'pre-build' or 'testing'
# 2. OR Allow if it parses as a version AND that version is >= 0.9.8
if name in ('testing', 'pre-build') or (m and tuple(map(int, m.groups())) >= (0, 9, 8)):
self.branches[name] = x.group('commit_sha')