squad upgrade installs Squad's own CI/release workflows that init deliberately skips (regression of #201)
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 77/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- github-actions, typescript
研究方向
從 packages/squad-cli/src/cli/core/upgrade.ts 中的 collectSquadOwnedCandidates 開始,將其 workflow 選擇與 packages/squad-sdk/src/config/init.ts 中的允許清單 FRAMEWORK_WORKFLOWS 進行比較。使用 issue 中的 init 和 upgrade --dry-run 命令重現問題。完成標準是 upgrade 會更新已安裝的 workflow,但不會規劃建立其他 Squad workflow;檢查 workflow 已存在和不存在的兩種情況。
由索引模型根據 Issue 內容生成。
描述
Version: CLI built from release/prepare-2.0.0-preview.5 @ 38d45d02 (package version 2.0.0-preview.6).
What happens
squad init installs only the four framework workflows (#201). Running squad upgrade right after, with nothing changed in between, adds seven more workflows. These are Squad's own product CI/CD, built for Squad's dev/preview/main/insider branch model.
D=$(mktemp -d); cd "$D"; git init -q
node <squad-cli>/dist/cli-entry.js init --roles --client copilot,claude
ls -1 .github/workflows
# squad-heartbeat.yml squad-issue-assign.yml squad-triage.yml sync-squad-labels.yml
node <squad-cli>/dist/cli-entry.js upgrade --dry-run | grep workflows
# create .github/workflows/squad-ci.yml
# create .github/workflows/squad-docs.yml
# create .github/workflows/squad-insider-release.yml
# create .github/workflows/squad-label-enforce.yml
# create .github/workflows/squad-preview.yml
# create .github/workflows/squad-promote.yml
# create .github/workflows/squad-release.yml
A real squad upgrade creates all seven files. For a non-npm project, the five in PROJECT_TYPE_SENSITIVE_WORKFLOWS become TODO stubs that still trigger on pushes and PRs to dev/preview/main/insider. squad-promote.yml and squad-label-enforce.yml are copied verbatim.
Expected
upgrade installs and refreshes the same workflow set that init installs (FRAMEWORK_WORKFLOWS). It updates any other squad-*.yml only if it's already present, because the user opted in. It never creates one.
Source
packages/squad-sdk/src/config/init.ts, line 773: theFRAMEWORK_WORKFLOWSallowlist thatinituses (the #201 fix).packages/squad-cli/src/cli/core/upgrade.ts,collectSquadOwnedCandidates(line 606). Line 623 onward iterates every*.ymlintemplates/workflows/and plans each as a candidate, with noFRAMEWORK_WORKFLOWSfilter.packages/squad-cli/src/cli/core/templates.ts, lines ~350–415:TEMPLATE_MANIFESTlists all 11 workflows withoverwriteOnUpgrade: true.packages/squad-cli/src/cli/core/workflows.ts, line 8:PROJECT_TYPE_SENSITIVE_WORKFLOWS.
Related: #201 (original init fix), #2047 (upgrade refreshing templates), #2361.
🤖 Generated with Claude Code
- 主要語言
- TypeScript
- 星號
- 3.4k
- 分支
- 516
- 平均合併
- 1 天 15 小時
- 30 天內合併 PR
- 116
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
github/squad 的其他 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 84/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
In-app coordinator/Ralph never reads .squad/ralph-instructions.md; only `squad watch --execute` does未關閉wave:2-soon
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
相似的 Issue
-
bot:ai-assisted component:platform-js status:untriaged
難度 1/5 1 小時以內 新手友好度 74/100
midnightntwrk/platform-js#38 ·
-
難度 2/5 1-3 小時 新手友好度 68/100
ranxianglei/billion-context#7068 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
mybigday/whisper.rn#348 ·
-
enhancement severity:low
難度 2/5 1-3 小時 新手友好度 82/100
Battle-Cattle/BCUK-Bot-4#1075 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 67/100
ilan-pinto/roaring-lions#1552 ·
維護者通常 1 天內回覆