fix(ci): compare check-plugins' stale-version step against the merge base
维护者通常 1 天内回复
已经有一个关联 PR 被合并了。
- #8744 来自 @melodic-automation-lanes —— 已合并
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 72/100
调研方向
找到名为 check-plugins 的 CI workflow 步骤中的 STALE VERSION,并检查它如何确定相对于 origin/main 的变更。先阅读该步骤及其现有测试。为以下两种验收情况添加覆盖:落后于 main 且未更改共享文件的分支通过;更改了共享文件但没有 fragment 的分支失败。
由索引模型根据 Issue 内容生成。
描述
Problem
check-plugins' STALE VERSION step fails a PR that is only behind main. It counts main's newer shared-file syncs (lib/prerequisites.mjs, lib/session-bridge/* and their plugin copies) as the PR's own changes. Examples: #8467 changed 4 files, none of them shared, and was 27 commits behind main; it failed with dozens of "changed vs origin/main but , in fragment mode, has no fragment" lines (run 39299393562). #8497 and #8489 failed the same way. Updating each PR from main clears the failure, but every update reruns full CI and both AI review lanes, which spends hosted-job concurrency and delays the merge.
Fix
Compare against the merge base (origin/main...HEAD, three dots), not the tip of main, wherever the step decides what "changed vs origin/main".
Acceptance
- A test where a branch behind main that changes no shared file passes the step, when main has since changed a shared file and its copies.
- A test that a branch which itself changes a shared file with no fragment still fails.
🤖 Generated with Claude Code
- 主要语言
- Shell
- 星标
- 22
- 派生
- 2
- 平均合并
- 7 小时 57 分钟
- 30 天内合并 PR
- 938
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
melodic-software/claude-code-plugins 的其他 Issue
-
priority: low
难度 2/5 1-3 小时 新手友好度 76/100
melodic-software/claude-code-plugins#8831 · 1 条评论 ·
维护者通常 1 天内回复
-
priority: medium status: confirmed
难度 2/5 1-3 小时 新手友好度 72/100
melodic-software/claude-code-plugins#8801 ·
维护者通常 1 天内回复
-
priority: low status: confirmed
难度 2/5 1-3 小时 新手友好度 72/100
melodic-software/claude-code-plugins#8799 ·
维护者通常 1 天内回复
-
priority: medium
难度 2/5 1-3 小时 新手友好度 72/100
melodic-software/claude-code-plugins#8730 · 1 条评论 ·
维护者通常 1 天内回复
-
priority: low
难度 2/5 1-3 小时 新手友好度 74/100
melodic-software/claude-code-plugins#8709 · 1 条评论 ·
维护者通常 1 天内回复
查看 melodic-software/claude-code-plugins 的全部 Issue
相似的 Issue
-
product-to-storybook is skipped silently by npx skills add because its frontmatter is invalid YAML未关闭
难度 1/5 1 小时以内 新手友好度 83/100
-
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复
-
bug github_actions security
难度 2/5 1-3 小时 新手友好度 76/100
DewaldOosthuizen/tech-cheat-sheets-and-notes#388 ·
维护者通常 1 天内回复
-
automated issue report
难度 1/5 1 小时以内 新手友好度 72/100
a2aproject/A2A#2376 ·
维护者通常 3 天内回复
-
kftui is not on PATH in bash login shells that use ~/.bash_profile可能已有人在做 @hcavarsan 今天认领。 未关闭area:ci kind:bug priority:p3
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复