chore(governance): add waiting task status
Harness governance / validate (push) Has been cancelled
Harness governance / validate (pull_request) Has been cancelled

This commit is contained in:
QiuSW
2026-08-04 15:05:33 +08:00
parent 4be15f2452
commit f85dbecf93
6 changed files with 23 additions and 7 deletions
+8
View File
@@ -14,6 +14,9 @@ if str(SCRIPTS) not in sys.path:
sys.path.insert(0, str(SCRIPTS))
from audit_gitea_coordination import (
ACTIVE_LABELS,
READY_OR_ACTIVE_LABELS,
STATUS_LABELS,
audit_repository,
latest_claim,
paged,
@@ -177,6 +180,11 @@ class OfflineRuleTests(unittest.TestCase):
class GiteaHelperTests(unittest.TestCase):
def test_waiting_status_is_not_claimable_or_active(self) -> None:
self.assertIn("status/waiting", STATUS_LABELS)
self.assertNotIn("status/waiting", READY_OR_ACTIVE_LABELS)
self.assertNotIn("status/waiting", ACTIVE_LABELS)
def test_label_plan_detects_exclusive_change(self) -> None:
desired = next(label for label in LABELS if label["name"] == "status/todo")
existing = {