Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
autoDetectInitwhen a project config exists but cannot be read, so commands cannot silently act on another team's project or user scope.teamai uninstallinstead of letting its invalid-config fallback proceed.push,status, anduninstall.Closes #892
Verification
npm run build— passed.npx tsc --noEmit— passed.npm run lint— passed.npx vitest run src/__tests__/config-not-initialized.test.ts -t "reports a broken project partition"— passed.npx vitest run --config vitest.e2e.config.ts src/__tests__/e2e/auto-detect-unreadable-scope.test.ts— 3 passed. The tests run the built CLI forpush --dry-run,status, anduninstall --dry-run --force; each exits 1, names the broken project config, and leaves the user config and team repo unchanged.The broader focused unit invocation had 66 passing tests and 5 Windows filesystem failures (symlink creation returned
EPERM; a chmod case returnedENOENT). The new unit regression and CLI E2E tests passed.