From 1ac3c230cb8fc96261a760734d101035d371ad20 Mon Sep 17 00:00:00 2001 From: Julio Quinteros Pro Date: Sat, 28 Feb 2026 00:17:12 -0300 Subject: [PATCH] Update .github/scripts/close_duplicate_issues.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- .github/scripts/close_duplicate_issues.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/scripts/close_duplicate_issues.py b/.github/scripts/close_duplicate_issues.py index 127bad31ac..4e17e1d6d8 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