Skip to content

fix(cli): preserve customized squad-ci workflows - #2382

Merged
bradygaster merged 2 commits into
github:devfrom
omercangumus:omercangumus/2361-preserve-custom-workflows
Nov 4, 2026
Merged

bradygaster merged 2 commits into
github:devfrom
omercangumus:omercangumus/2361-preserve-custom-workflows

Conversation

@omercangumus

Copy link
Copy Markdown
Contributor

Summary

  • Preserve a customized .github/workflows/squad-ci.yml instead of replacing the active CI with a generated stub.
  • Show the preserve action in squad upgrade --dry-run and leave preserved workflow content out of the shipped manifest.
  • Add a .NET workflow regression covering dry-run and an actual upgrade.

Closes #2361

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

🛫 PR Readiness Check

ℹ️ This comment updates on each push. Last checked: commit cc4717b

PR Scope: 📦🔧 Mixed (product + infrastructure)

⚠️ 3 item(s) to address before review

Status Check Details
❌ Single commit 2 commits — consider squashing before review
✅ Not in draft Ready for review
✅ Branch up to date Up to date with dev
❌ Copilot review No Copilot review yet — it may still be processing
✅ Changeset present Changeset file found
✅ Scope clean No .squad/ or docs/proposals/ files
✅ No merge conflicts Merge status unknown — GitHub is still computing
✅ Copilot threads resolved No Copilot review threads
❌ CI passing 6 check(s) still running

Files Changed (5 files, +96 −20)

File +/−
.changeset/quiet-workflows-preserve.md +5 −0
packages/squad-cli/src/cli/core/squad-owned-files.ts +38 −18
packages/squad-cli/src/cli/core/upgrade.ts +5 −0
test/cli/upgrade-idempotent.test.ts +43 −0
test/cli/upgrade-portability.test.ts +5 −2

Total: +96 −20


This check runs automatically on every push. Fix any ❌ items and push again.
See CONTRIBUTING.md and PR Requirements for details.

@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

🏗️ Architectural Review

Authoritative evidence: base-controlled pull_request_target reporter.

⚠️ Architectural review: 1 warning(s).

Severity Category Finding Files
🟡 warning bootstrap-area 2 file(s) in the bootstrap area (packages/squad-cli/src/cli/core/) were modified. These files must maintain zero external dependencies. Review carefully. packages/squad-cli/src/cli/core/squad-owned-files.ts, packages/squad-cli/src/cli/core/upgrade.ts

Automated architectural review — informational only.

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

🟡 Impact Analysis — PR #2382

Risk tier: 🟡 MEDIUM

📊 Summary

Metric Count
Files changed 5
Files added 1
Files modified 4
Files deleted 0
Modules touched 3

🎯 Risk Factors

  • 5 files changed (≤5 → LOW)
  • 3 modules touched (2-4 → MEDIUM)

📦 Modules Affected

root (1 file)
  • .changeset/quiet-workflows-preserve.md
squad-cli (2 files)
  • packages/squad-cli/src/cli/core/squad-owned-files.ts
  • packages/squad-cli/src/cli/core/upgrade.ts
tests (2 files)
  • test/cli/upgrade-idempotent.test.ts
  • test/cli/upgrade-portability.test.ts

This report is generated automatically for every PR. See #733 for details.

Keep local CI commands active during upgrades and show the preserve action in dry-run.

Closes github#2361

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@omercangumus
omercangumus force-pushed the omercangumus/2361-preserve-custom-workflows branch from 736abda to 80ed002 Compare November 1, 2026 18:51
@omercangumus
omercangumus marked this pull request as ready for review November 1, 2026 19:00
@bradygaster
bradygaster merged commit d3cf753 into github:dev Nov 4, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(cli): upgrade must not replace customized squad-ci workflows

2 participants