spec-runner 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -30,7 +30,7 @@ npx spec-runner
30
30
  ```
31
31
 
32
32
  対話では**どの開発環境か**だけ聞かれる(AI ツール・CI・ドキュメント言語)。
33
- ここまでで、`.spec-runner/config.sh`(既定値)と `scripts/`・`docs/`・`.github/` などができる。
33
+ ここまでで、`.spec-runner/config.sh`(既定値)と `.spec-runner/scripts`・`.spec-runner/templates`・`docs/` ができる。CI で github-actions などを選んだ場合は `.github/` もできる。
34
34
 
35
35
  ### 3.5 プロジェクトの土台を書く(推奨・init の前)
36
36
 
@@ -178,7 +178,7 @@ curl -sSL https://raw.githubusercontent.com/spec-runner/spec-runner/main/install
178
178
  │ ├── テンプレート一覧.md
179
179
  │ ├── 振り返り/負債.md
180
180
  │ └── 99_設計判断記録/.gitkeep
181
- ├── .github/
181
+ ├── .github/ # CI で github-actions を選択した場合のみ
182
182
  │ ├── workflows/phase-gate-check.yml
183
183
  │ └── PULL_REQUEST_TEMPLATE.md
184
184
  └── docs/ # 付番済み(01_〜04_、99_)要件・概要・詳細設計・テスト設計・設計判断記録
@@ -387,8 +387,11 @@ async function deployFiles(answers) {
387
387
  fs.mkdirSync(path.dirname(adrTemplateDest), { recursive: true });
388
388
  if (!isDryRun) fs.copyFileSync(adrTemplateSrc, adrTemplateDest);
389
389
  }
390
- copyPathFrom(baseDir, '.github/workflows');
391
- copyPathFrom(baseDir, '.github/PULL_REQUEST_TEMPLATE.md');
390
+ // CI で github-actions を選んだときだけ .github のワークフロー・PR テンプレートを配置
391
+ if (answers.ci === 'github-actions') {
392
+ copyPathFrom(baseDir, '.github/workflows');
393
+ copyPathFrom(baseDir, '.github/PULL_REQUEST_TEMPLATE.md');
394
+ }
392
395
 
393
396
  // 2. Claude Code 選択時: templates/claude/ をそのままコピー
394
397
  if (tools.includes('claude')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spec-runner",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "AI-driven DDD phase gate system — design-first enforcement for Claude Code, Cursor, and Copilot",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -750,7 +750,11 @@ cmd_complete() {
750
750
  echo ""
751
751
  info "次のステップ:"
752
752
  info " 1. git push origin $branch"
753
- info " 2. Pull Request を作成(.github/PULL_REQUEST_TEMPLATE.md を使用)"
753
+ if [[ -f "$PROJECT_ROOT/.github/PULL_REQUEST_TEMPLATE.md" ]]; then
754
+ info " 2. Pull Request を作成(.github/PULL_REQUEST_TEMPLATE.md を使用)"
755
+ else
756
+ info " 2. Pull Request を作成"
757
+ fi
754
758
  if [[ -n "$agg_branch" ]]; then
755
759
  info " 3. PRマージ先: $agg_branch"
756
760
  info " 4. 関連ユースケースがすべて揃ったら $agg_branch → main へPR"