litellm/.github/scripts
Cursor Agent e09bb065e4
fix(ci): parse gh api --paginate output as a single JSON document
str.splitlines() also splits on Unicode line separators (U+2028, U+2029)
which are valid inside JSON string values without escaping. When an open
GitHub issue title or body contained one of these characters, the
duplicate-issue check script broke the gh output mid-string and crashed
with 'Unterminated string ...' before the auto-close path could run.

gh api --paginate for an array endpoint already concatenates pages into
a single JSON array, so just parse the whole stdout once. Add a
regression test covering U+2028/U+2029 and the existing PR-filter path.

Co-authored-by: Krrish Dholakia <krrish-berri-2@users.noreply.github.com>
2026-06-06 09:09:15 +00:00
..
close_duplicate_issues.py fix(ci): parse gh api --paginate output as a single JSON document 2026-06-06 09:09:15 +00:00
scan_keywords.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_close_duplicate_issues.py fix(ci): parse gh api --paginate output as a single JSON document 2026-06-06 09:09:15 +00:00