Repository navigation
ci(track): 追踪新版本的 PR 同时重新生成 README 总览 - #31
Merged
Merged
Conversation
main 受保护,Sync README 只能在合并后再开一个 PR。追踪工作流在提交索引前 先渲染 README,让一次合并同时覆盖索引和总览。
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.
#30 把
Sync README改成了 bot PR,所以每次追踪到新版本、合并索引 PR 之后,还会多出一个只含 README 的同步 PR。本 PR 让追踪工作流在同一个提交里一并重新生成 README,一次合并覆盖索引和总览。改动
.github/workflows/track-releases.yml:提交bot/track-releases前先运行node scripts/render-readme.mjs,提交里同时包含lithe-plugin-index.json和README.md;PR 描述补一句“README 总览已一并重新生成”。docs/maintainers.md:自动追踪一节说明 PR 同时包含索引和 README,合并后不需要再等Sync README。不变的部分
Sync README保留,仍负责手工提交的索引 PR(例如 feat(index): 收录 LLDB Debugger 0.1.0 预发布插件 #28 这类预发布条目)、渲染脚本和图片的更新。追踪 PR 合并后它会运行一次,发现 README 已经一致就结束。--verify-archives --base)没有改动。验证
node scripts/render-readme.mjs在当前main上不产生差异;node --test scripts/*.test.mjs46 个通过。actionlint对track-releases.yml只有一条 SC2086 提示,指向“Find new releases”步骤里原本就有的$args,不是本 PR 引入。main上由定时任务或手动触发,合并后下一次出现新版本时才会走到这条路径;也可以合并后手动运行一次Track plugin releases观察。