chore(governance): add waiting task status
This commit is contained in:
@@ -26,6 +26,7 @@ from validate_harness_governance import (
|
||||
|
||||
STATUS_LABELS = {
|
||||
"status/todo",
|
||||
"status/waiting",
|
||||
"status/doing",
|
||||
"status/blocked",
|
||||
"status/review",
|
||||
@@ -558,8 +559,8 @@ def audit_repository(
|
||||
findings.append(AuditFinding(number, "stale", "claim 租期不得超过 24 小时。"))
|
||||
if task.lease_until <= now:
|
||||
findings.append(AuditFinding(number, "stale", "claim 已过期,需人工审查回收。"))
|
||||
elif status == "status/todo" and claim_branch in branches:
|
||||
findings.append(AuditFinding(number, "claim", "TODO 仍存在 claim 分支。"))
|
||||
elif status in {"status/todo", "status/waiting"} and claim_branch in branches:
|
||||
findings.append(AuditFinding(number, "claim", "未领取状态仍存在 claim 分支。"))
|
||||
|
||||
matching_prs = [
|
||||
pr
|
||||
|
||||
Reference in New Issue
Block a user