Skip to content

fix(projects): honor --dry-run in projects set (#900) - #905

Merged
jeff-r2026 merged 1 commit into
Tencent:mainfrom
ydflow:fix/projects-set-dry-run
Sep 30, 2026
Merged

jeff-r2026 merged 1 commit into
Tencent:mainfrom
ydflow:fix/projects-set-dry-run

Conversation

@ydflow

@ydflow ydflow commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Honor the global --dry-run option in teamai projects set.
  • Preview the selected projects and return before saving config or invalidating pull state.
  • Pass dry-run mode to config loading and document the preview in both usage guides.

Test Plan

  • npm run build
  • npm run typecheck
  • npm run lint
  • npx vitest run src/__tests__/projects-cmd.test.ts (20 passed)
  • npx vitest run --config vitest.e2e.config.ts src/__tests__/e2e/projects-manifest-crud.test.ts (6 passed; includes real CLI checks for selecting and clearing projects without changing config or state)

Related Issue

Addresses the projects set item in #900. The issue remains open for its other dry-run cases.

@github-actions

Copy link
Copy Markdown

No findings.

The PR description documents sufficient testing, including representative real-CLI end-to-end verification for the runtime behavior change.

@jeff-r2026
jeff-r2026 merged commit d4d1c64 into Tencent:main Sep 30, 2026
13 checks passed
Walternater pushed a commit to Walternater/teamai-cli that referenced this pull request Nov 2, 2026
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.

2 participants