👷 每 3 天同步 DeepWiki Markdown 上下文 - #1665
Merged
Merged
Conversation
cyfung1031
marked this pull request as ready for review
August 11, 2026 05:22
Collaborator
Author
|
@CodFrm warning 部份已经回报至 deepwiki. 他们的人说了会跟进「行数没更新」的问题 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist / 检查清单
N/A — no issue is referenced by this maintenance change.
背景
让 coding agents 可以按需读取 DeepWiki 项目背景,同时避免把单个超大聚合文档塞进上下文。
本次改动
.github/workflows/sync-deepwiki.yaml。suwa-sh/deepwiki-to-mdwrapper;workflow 直接使用官方无认证 DeepWiki MCP。$GITHUB_STEP_SUMMARY写入状态、计数、路径、warning 或完整 failure diagnostics;no-change 运行也会明确记录 write/commit skipped。read_wiki_structure是页面身份 authority;contents 必须一一对应。页面数量、标题、文件名和 index 层级由本次响应动态计算,没有固定页数假设。.deepwiki/index.md和每个 structure 条目的小型 Markdown 页面;校验页面集合、标题、index 链接、.deepwiki链接、仓库目标和片段。scripts/sync-deepwiki.mjs,没有新增 standalone 测试脚本。步骤共享的 embedded module 只在$RUNNER_TEMP生成。changed=false、report 和 summary,并跳过 write、reread、commit 和 push;write/commit 由steps.compare.outputs.changedgating。$RUNNER_TEMP;validate 和 changed-write 复用经过 version、checkout root、GITHUB_SHA和路径约束验证的清单,避免重复递归扫描。changed path 从三次扫描降为一次,unchanged path 从两次降为一次。实现考虑
.deepwiki, which is excluded from the inventory.已知限制
GITHUB_TOKEN将刷新后的.deepwiki提交到main,仓库规则必须允许写入。参考
验证
pnpm run lint— passed.pnpm run validate:yaml:all— passed.node --check— passed.changed=false; report, per-step summary, and explicit write/commit skipped sections were produced.git diff --checkand commit checks — passed.Screenshots / 截图
N/A — non-visual CI/documentation change.