litellm/.github/scripts
Cursor Agent b2376e8359
fix(ci): parse gh api --paginate output as NDJSON in close_duplicate_issues
The old fetch_open_issues assumed gh api --paginate emitted one JSON value
per line and split on newlines before calling json.loads. In reality gh
--paginate concatenates the raw JSON array response bodies (with embedded
whitespace/newlines), so any body large enough to contain a real newline
inside a string field left json.loads to parse a truncated slice, blowing
up with 'Unterminated string starting at ...'. Every issues-triggered
Check Duplicate Issues run has been failing because of this.

Fix by asking gh to unwind each page with --jq '.[]', which emits exactly
one JSON object per line and paginates safely, then json.loads each line.

Co-authored-by: Krrish Dholakia <krrish-berri-2@users.noreply.github.com>
2026-07-22 10:06:31 +00:00
..
_agent_shin_actions.py feat(agent-shin): automated PR/issue triage, low-quality auto-close, and review-gate label lifecycle (#30433) 2026-06-17 20:42:27 -07:00
agent_shin_shared.py feat(agent-shin): automated PR/issue triage, low-quality auto-close, and review-gate label lifecycle (#30433) 2026-06-17 20:42:27 -07:00
close_duplicate_issues.py fix(ci): parse gh api --paginate output as NDJSON in close_duplicate_issues 2026-07-22 10:06:31 +00:00
close_low_quality_prs.py feat(agent-shin): automated PR/issue triage, low-quality auto-close, and review-gate label lifecycle (#30433) 2026-06-17 20:42:27 -07:00
scan_keywords.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
triage-requirements.txt feat(agent-shin): automated PR/issue triage, low-quality auto-close, and review-gate label lifecycle (#30433) 2026-06-17 20:42:27 -07:00
triage_rollout_heads_up.py feat(agent-shin): automated PR/issue triage, low-quality auto-close, and review-gate label lifecycle (#30433) 2026-06-17 20:42:27 -07:00
triage_with_llm.py feat(agent-shin): automated PR/issue triage, low-quality auto-close, and review-gate label lifecycle (#30433) 2026-06-17 20:42:27 -07:00
uv_sync_with_retries.sh ci: harden cargo fetches during maturin builds (#31348) 2026-06-25 14:31:05 -07:00