You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(cli): upgrade must not replace customized squad-ci workflows #2361
A real Squad 0.9.x workspace reported that an earlier upgrade replaced a customized .github/workflows/squad-ci.yml with Squad's generated Linux placeholder. The replacement workflow exited successfully without running the repository's actual tests.
Preview.2 now classifies workflow files through the squad-owned plan and creates .local-backup for customized or provenance-unknown content, but it still overwrites the live customized workflow after the backup succeeds. Workflows should be user-owned, use a clearly delimited generated block, or require an explicit confirmation before replacement.
Expected
Never replace a customized workflow during unattended upgrade.
Preserve the active test commands and workflow triggers.
Dry-run must identify the file as user-owned/customized and state the exact action.
Add regression coverage for a customized .NET workflow.
Current code
packages/squad-cli/src/cli/core/upgrade.ts includes squad-ci.yml in the project-sensitive Squad-owned workflow set. squad-owned-files.ts backs up customized files and then overwrites them.
Activity
fix(cli): preserve customized squad-ci workflows
fix(cli): preserve customized squad-ci workflows (github#2382)