Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

fix(ci): compare check-plugins' stale-version step against the merge base

已关闭 适合新手
#8,507 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

已经有一个关联 PR 被合并了。

  • #8744 来自 @melodic-automation-lanes —— 已合并

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
github-actions, shell
领域
ci-cd, testing

调研方向

找到名为 check-plugins 的 CI workflow 步骤中的 STALE VERSION,并检查它如何确定相对于 origin/main 的变更。先阅读该步骤及其现有测试。为以下两种验收情况添加覆盖:落后于 main 且未更改共享文件的分支通过;更改了共享文件但没有 fragment 的分支失败。

由索引模型根据 Issue 内容生成。

描述

priority: medium status: confirmed

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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

melodic-software/claude-code-plugins 的其他 Issue

查看 melodic-software/claude-code-plugins 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。