Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

test(source-control): make the ready case's base-merged grader check the merged file, not the command

クローズ 初心者向け
#10,227 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

関連するプルリクエストがすでにマージされています。

  • #10915 @melodic-automation-lanes による — マージ済み

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
git, github-actions, shell
領域
devtools, testing

調査の方向性

plugins/source-control/evals/pull-request-ready-merges-base-never-rebases/graders/base-merged.md とケースの scaffold.sh を読み、src/extra.ts が main に追加されることを確認してください。grader を変更して、そのファイルが両方のブランチに存在することを確認させてから、python3 plugins/evals/skills/validate/scripts/validate-cases.py plugins/source-control/evals を実行してください。grader がマージされたファイルを確認し、検証が終了コード 0 で終了したら完了です。

索引モデルが issue の本文から書いたものです。

説明

agent-ready priority: medium status: ready work-class: scoped

Parent: #6997 (slice 1 of 2). Runs first; slice 2 waits on it.
Runs in: lane. Grader and static validation only; no model run.

Problem

In the 2026-10-24 rerun, the base-merged grader of pull-request-ready-merges-base-never-rebases passed in a with-plugin run whose command was git fetch origin main && git merge --no-edit origin/main. The fetch failed, so the merge never ran. The grader (graders/base-merged.md: type: tool_used, tool: Bash, input_match: 'git\s+merge...') credits the attempted command, not a merge that happened. A tool_used grader matches only a call's input (plugins/evals/skills/validate/scripts/validate-cases.py:153), so it cannot see the result.

The case's scaffold gives an outcome to check: main adds src/extra.ts after the branch forks (scaffold.sh, "chore: advance main"), so the file is in the workspace only after the base really merged.

Fix

Change graders/base-merged.md to a file_exists grader on src/extra.ts (exists: true, arm: both), so it passes only when the merge landed. Keep no-rebase and base-merged-before-flip as they are. If the case description or expected_outcome names the command, reword it to the outcome. Add a none changelog fragment for source-control if only an eval case changed, per the repo's fragment rules.

Done when

  • grep -c '^type: file_exists' plugins/source-control/evals/pull-request-ready-merges-base-never-rebases/graders/base-merged.md prints 1
  • grep -c 'src/extra.ts' plugins/source-control/evals/pull-request-ready-merges-base-never-rebases/graders/base-merged.md prints 1
  • grep -c 'src/extra.ts' plugins/source-control/evals/pull-request-ready-merges-base-never-rebases/scaffold.sh prints 1 or more (the file is still added only on main)
  • python3 plugins/evals/skills/validate/scripts/validate-cases.py plugins/source-control/evals exits 0
  • ci-status is green on the PR head

Split by the backlog HITL session (2026-10-25, owner rule Q93: split large work before a run picks it up). This was generated by AI.

主要言語
Shell
スター
22
フォーク
2
平均マージ
2時間 40分
マージ済み PR(30日)
936

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

melodic-software/claude-code-plugins のほかの issue

melodic-software/claude-code-plugins の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。