Classify Vercel preview auth gates

Treat Vercel authorize failures as preview authorization gates so the integration tracker does not mislabel them as code checks to fix.
This commit is contained in:
zhifu gao
2026-06-30 14:27:59 +08:00
committed by GitHub
parent 740d72ba19
commit b76c4d2e7f
2 changed files with 53 additions and 0 deletions
+5
View File
@@ -205,10 +205,15 @@ def recommend_integration_action(pull_request: Dict[str, Any], checks: Dict[str,
failed_names = " ".join(
str(check.get("name") or "") for check in checks.get("failed_check_runs") or []
).lower()
failed_urls = " ".join(
str(check.get("url") or "") for check in checks.get("failed_check_runs") or []
).lower()
if "cla" in pending_names:
return "resolve CLA"
if "claude-review" in failed_names or "review bot" in failed_names:
return "review bot gate"
if "vercel" in failed_names and "vercel.com/git/authorize" in failed_urls:
return "preview auth gate"
if check_state == "failure":
return "fix checks"
if check_state == "pending":