Files
market/scripts
mashagua 55588fd33f fix(catalog): 截断超长 PR 正文避免超过 GitHub 65536 字符上限 (#422)
## 根因
在 [run
46796970818](https://github.com/desirecore/market/actions/runs/46796970818)
中,`gamedev-agent-skills` 包含大量合集子项,每个子项生成的诊断表格行汇总后超过 GitHub PR 正文 65,536
字符上限,导致 `git push` 成功后 `gh pr create` 返回 exit 1,进而留下无 PR 的孤儿分支并在次日触发
`git push` non-fast-forward 失败。

## 修复
- `scripts/catalog/propose_upstream_updates.py`:新增
`_truncate_pr_body`(上限 60,000 字符,截断处提示完整逐项结果见本次 Workflow 的
`audit-results` artifact),统一应用于新建 PR 与自动草稿转 Ready 两条路径。
- `scripts/catalog/test_propose_upstream_updates.py`:新增单测
`test_oversized_pr_body_is_truncated_below_github_limit`(17 tests OK)。
2026-12-02 11:13:39 +08:00
..