litellm/.github/scripts
Cursor Agent c9adb3f72c
fix(ci): make Check Duplicate Issues robust to Unicode separators in issue bodies
The 'Check Duplicate Issues' workflow has been failing with
  json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 2792467
whenever an open issue body contains a Unicode line/paragraph separator
(U+2028 / U+2029).

Root cause: fetch_open_issues() called 'gh api --paginate' and then
str.splitlines() on the raw output. gh concatenates JSON pages without
any separator (...][...), so the entire output is one logical line --
unless a U+2028/U+2029 character inside a string body trips splitlines(),
which splits mid-JSON-string and yields an unterminated array fragment.

Switch to 'gh issue list --json number,title --state open --limit 100000'
which returns a single well-formed JSON array and already excludes pull
requests, removing both pitfalls in one go.

Verified locally: the script now fetches 1355 open issues and runs the
single-issue and --scan modes without errors.

Co-authored-by: Krrish Dholakia <krrish-berri-2@users.noreply.github.com>
2026-05-21 03:10:40 +00:00
..
close_duplicate_issues.py fix(ci): make Check Duplicate Issues robust to Unicode separators in issue bodies 2026-05-21 03:10:40 +00:00
scan_keywords.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00