Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Update .github/scripts/close_duplicate_issues.py

Julio Quinteros Pro1ac3c230cb8f
diff --git a/.github/scripts/close_duplicate_issues.py b/.github/scripts/close_duplicate_issues.py
index 127bad31acd..4e17e1d6d8b 100755
--- a/.github/scripts/close_duplicate_issues.py
+++ b/.github/scripts/close_duplicate_issues.py
@@ -41,14 +41,11 @@ def gh(*args: str) -> str:
def fetch_open_issues(repo: str | None) -> list[dict]:
"""Fetch all open issues (excluding PRs) via gh api --paginate."""
- endpoint = "repos/{owner}/{repo}/issues?state=open&per_page=100&sort=created&direction=asc"
- cmd = ["api", "--paginate", endpoint]
if repo:
- cmd.extend(["-f", f"owner={repo.split('/')[0]}", "-f", f"repo={repo.split('/')[1]}"])
endpoint = f"repos/{repo}/issues?state=open&per_page=100&sort=created&direction=asc"
- cmd = ["api", "--paginate", endpoint]
else:
- cmd = ["api", "--paginate", "repos/{owner}/{repo}/issues?state=open&per_page=100&sort=created&direction=asc"]
+ endpoint = "repos/{owner}/{repo}/issues?state=open&per_page=100&sort=created&direction=asc"
+ cmd = ["api", "--paginate", endpoint]
raw = gh(*cmd)
# gh --paginate concatenates JSON arrays, so we may get multiple arrays