Narrow dg-native-suggestions-off-withholds-offer's grader so it stops matching the condition's paste instruction

未关闭 适合新手
#20,969 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

找到 no-goal-offer matcher 及其示例,然后阅读所引用的 check-matchers.py 工作流。添加示例,使粘贴指令通过且受条件限制的 Routing 句子失败,并运行 check-matchers.py 进行确认。剩余的验收检查是在 main 上以 runs 5 运行 VALID 套件,且此案例的得分至少与其无插件分支相同。

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

描述

Context

dg-native-suggestions-off-withholds-offer scored 0.50 against no-plugin 1.00 in #20870's post-merge suite (scores, run 47199540348, VALID, runs 5). In 4 of 5 with-arm replies the no-goal-offer regex (Type[ \t]+/goal|you can run[ \t]+?/goal\b, from #20669) matched only "Type /goal (with a trailing space), then paste everything between the dashed lines". That line is draft-goal-condition's own delivery instruction for the Step 4 condition, which the case expects to stay. Only run 2 also carried the gated sentence "If /goal is available in your session, you can run /goal <condition>".

Proposed work

Narrow no-goal-offer to the gated Routing sentence (/goal is available in your session, or you can run /goal`), add samples covering the paste instruction (pass) and the offer sentence (fail), and confirm with check-matchers.py.

Acceptance criteria
  • no-goal-offer passes a reply carrying only the paste instruction and fails one carrying the Routing sentence (samples).
  • The case scores at or above its no-plugin arm in a VALID suite run on main at runs 5.
References
  • #20870, #20669.
主要语言
Shell
星标
22
派生
2
平均合并
3 小时 4 分钟
30 天内合并 PR
941

环境准备

  • 没有 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 摘要。