Repository navigation
记录上游清单,并用每周 workflow 开更新 PR - #7
Merged
Merged
Conversation
docs/UPSTREAMS.md 由 skills.json 与 skills.lock.json 生成,check.sh 核对。 upstream-update.yml 有变化时开或更新同一个 PR,不合并,新 skill 只提示。 impeccable 与 emilkowalski 的锁定提交跟随当前上游 HEAD。 Co-authored-by: Owlbay <gzh298255@gmail.com>
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.
做了什么
从最新
main(含已合并的 #6,0645b71)开出。上游清单
新增
docs/UPSTREAMS.md,由scripts/render-upstreams.py根据skills.json和skills.lock.json生成。每个已同步上游写明仓库、作者、许可证、安装范围、锁定提交,以及收录的 skill 和分类。未收录路径来自skills.json的excluded:performance-cheatsheet.md(不是 skill,要点已在animation-performance)build-design、state-machine、teardown(不在安装清单里)参考整理单独一节,目前是 enesozturk/dimensional-drawing,不进
vendor/,不锁定提交。scripts/check.sh会重新生成并比对这份文档,过期就失败。README 和docs/README.md已链过去。每周检查并开 PR
新增
.github/workflows/upstream-update.yml,每周一 01:00 UTC,也可workflow_dispatch。它用scripts/sync-upstream.py拉取最新提交;有变化时先跑scripts/check.sh和scripts/sync-upstream.py --check,再由scripts/upstream-pr.py --push开 PR,或强制更新已打开的upstream-sync分支上的同一个 PR。没有变化不开 PR,也不合并。PR 正文包含每个上游的旧/新提交、compare 链接、变更文件、许可证文件有没有变化,以及新 skill。新 skill 不写入
skills.json。扫描只看已经在同步的 skill 目录(例如skills/、plugin/skills/),忽略.claude/、.cursor/里的副本。原来的
.github/workflows/sync-upstream.yml会直接推到默认分支,已删掉,避免和这个 PR 流程抢写。actions/checkout固定在11bd71901bbe5b1630ceea73d27597364c9af683(v4.2.2)。workflow 权限只有contents: write和pull-requests: write,用仓库自带的GITHUB_TOKEN。顺手跟上的锁定提交
为了让
--check通过,这次把已经前进的上游锁定一起更新了。已同步文件内容没有变化:7510e23→5e745ac(上游改的是 README)2d22863→a81dbca(提交说明是 add remove-animations skill)skills/remove-animations是新 skill,没有自动收录。要收的话另改skills.json并指定分类。需要在仓库设置里做的事
workflow 用
GITHUB_TOKEN推送upstream-sync并开 PR。请到 Settings → Actions → General:permissions提不上去。不需要额外的 PAT。
upstream-sync不要设成分支保护,否则每周的强制更新会被拒绝。验证
scripts/check.sh:通过(含清单比对和upstream-pr.py --self-test)scripts/sync-upstream.py --check:通过,四家上游都已是最新upstream-pr.py --self-test:PR 正文含 compare 链接、许可证提示、新 skill 提示;已排除和.claude/副本不会被当成新 skillupstream-pr.py --dry-run --before skills.lock.json:打印「没有变化,不开 PR」--report:正文列出brand-new,并写明没有自动加入清单actionlint1.7.7 检查upstream-update.yml和check.yml:通过act,没有在 Docker 里跑完整 Actions