fix: Issue駆動CIプロンプトを書籍 ch07 7.6 節に整合させPR作成まで完走させる#24
Merged
Conversation
書籍 ch07 7.6 節の `issueDrivenInstructions` で示されている 7 項目 TODO テンプレートと 「ファイル修正だけで終わるな」の重要強調、`createIssueComment` の名指し指示を採用。 従来の 1 行ステップ羅列ではベース指示の 4 項目 TODO テンプレに押し負け、gpt-5-nano 等の小型モデルがファイル修正/テスト実行のみで終了し PR 作成まで到達しなかった。 ch07-7 補足の `## Issue本文(参照用)` ブロックは維持。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.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.
Summary
bin/cli.tsのissueDrivenInstructionsを書籍 ch07 7.6 節の記述に合わせて強化createIssueCommentの名指し指示を導入## Issue本文(参照用)埋め込みは維持背景
従来の CI 向け追加指示は 1 行のステップ羅列(
Issue理解 → ファイル読込 → 修正 → テスト → Gitコミット/プッシュ → PR作成 → Issueへ結果コメント)で、ベース指示 (src/core/prompt.md) の「必ず以下の形式で TODO リストを作成してください」+ 4 項目テンプレートに押し負けていた。結果として
gpt-5-nano等の小型モデルでは 4 項目テンプレ(タスク理解/ファイル読込/変更/動作確認)をそのまま採用し、ファイル修正とテスト実行を終えた段階で「正常終了」してしまい、createBranch/commitChanges/pushBranch/createPullRequest/createIssueCommentツールが一度も呼ばれずに完了する事象が発生していた(参考: TM-DataScientist/nano-code の Actions ログ)。書籍 ch07 7.6 節 (
manuscript/ch07_github_actions/ch07_GitHub Actionsで開発ワークフローを自動化する.md:378-400) には PR 作成まで完走する強いプロンプトが既に掲載されており、実装を書籍に整合させる修正。Test plan
🤖 Generated with Claude Code