Skip to content

[AI] fix: 修复文档同步 Action 大规模删除中止 - #44

Merged
jiahim merged 1 commit into
mainfrom
codex/fix-sync-large-prune
Aug 31, 2026
Merged

[AI] fix: 修复文档同步 Action 大规模删除中止#44
jiahim merged 1 commit into
mainfrom
codex/fix-sync-large-prune

Conversation

@jiahim

@jiahim jiahim commented Aug 31, 2026

Copy link
Copy Markdown
Owner

问题

定时文档同步在官方 API Reference 一次移除 28 个旧页面时触发大规模 prune 安全阈值,导致 Synchronize official Markdown 步骤中止,自动同步 PR 无法生成。

修复

  • 定时同步改为执行 pnpm docs:sync --prune --allow-large-prune
  • 保留本地 CLI 默认的大规模删除保护
  • 保留自动任务只更新专用分支并创建待审核 PR、不会直接写入 main 的安全边界
  • 更新自动 PR 文案,明确提醒维护者审核删除文件清单
  • 补充 PR 摘要回归测试和维护文档

验证

  • pnpm test:106/106 通过
  • pnpm typecheck:通过
  • 工作流 YAML 解析:通过
  • git diff --check:通过

关联失败运行:https://github.com/jiahim/OpenAI-API-Chinese/actions/runs/33329912186/job/99306506450

@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
open-ai-api-chinese Ready Ready Preview Aug 31, 2026 4:01am

@jiahim
jiahim merged commit 9e9cbfc into main Aug 31, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant