litellm/.github/scripts
Cursor Agent 1672e94901
fix(ci): use jq filter in close_duplicate_issues to avoid JSON parse error
The script previously called `gh api --paginate` and split the raw
response on newlines before json.loads()'ing each line. This is unsafe
because each page is a JSON array on a single conceptual line, and any
issue `body` field containing literal newlines makes splitlines() cut
the JSON apart, producing fragments that fail with
`Unterminated string starting at: line 1 column ...`.

Pass `--jq '.[]'` so gh emits each issue as a single compact JSON
object per line (with embedded newlines escaped). The loop then parses
one object per line safely.

Co-authored-by: Krrish Dholakia <krrish-berri-2@users.noreply.github.com>
2026-05-21 22:12:07 +00:00
..
close_duplicate_issues.py fix(ci): use jq filter in close_duplicate_issues to avoid JSON parse error 2026-05-21 22:12:07 +00:00
scan_keywords.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00