mirror of
https://github.com/modelscope/FunASR.git
synced 2026-10-12 02:19:18 +00:00
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:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user