fix: [test] blocked-check 将 API 错误误判为阻塞已解除 - Closes #58 #60

Merged
pzhang_zywl merged 2 commits from test/issue-58 into main 2026-06-02 16:21:05 +08:00
Showing only changes of commit eccaa28b1d - Show all commits
+1 -6
View File
@@ -124,12 +124,7 @@ def blocked_check():
If no references found or all referenced issues are closed, If no references found or all referenced issues are closed,
removes the 'blocked' label. removes the 'blocked' label.
""" """
try: all_blocked = _req_safe("GET", "/issues?state=open&labels=blocked")
all_blocked = _req("GET", "/issues?state=open&labels=blocked")
except SystemExit:
print("No blocked issues found.")
return
if not all_blocked: if not all_blocked:
print("No blocked issues found.") print("No blocked issues found.")
return return