squad upgrade installs Squad's own CI/release workflows that init deliberately skips (regression of #201)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 77/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- github-actions, typescript
Hướng nghiên cứu
Bắt đầu tại packages/squad-cli/src/cli/core/upgrade.ts, ở collectSquadOwnedCandidates, rồi so sánh lựa chọn workflow với danh sách cho phép FRAMEWORK_WORKFLOWS trong packages/squad-sdk/src/config/init.ts. Tái hiện vấn đề bằng các lệnh init và upgrade --dry-run trong issue. Công việc được xem là hoàn tất khi upgrade làm mới các workflow đã cài đặt nhưng không lên kế hoạch tạo các workflow Squad khác; hãy kiểm tra cả trường hợp workflow đã tồn tại và chưa tồn tại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 3.4k
- Fork
- 516
- Merge trung bình
- 1 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 116
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của github/squad
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
In-app coordinator/Ralph never reads .squad/ralph-instructions.md; only `squad watch --execute` doesĐang mởwave:2-soon
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
bot:ai-assisted component:platform-js status:untriaged
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 74/100
midnightntwrk/platform-js#38 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ranxianglei/billion-context#7068 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
vendor: bump whisper.cpp past 6a8addd — the current pin aborts the app on a failed Metal initĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
mybigday/whisper.rn#348 ·
-
enhancement severity:low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Battle-Cattle/BCUK-Bot-4#1075 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
ilan-pinto/roaring-lions#1552 ·
Maintainer thường phản hồi trong vòng 1 ngày