fix(init): mirror onboarding project creation by betegon · Pull Request #1077 · getsentry/cli · GitHub
Skip to content

fix(init): mirror onboarding project creation#1077

Merged
betegon merged 1 commit into
mainfrom
fix/init-project-creation-onboarding
Jun 8, 2026
Merged

fix(init): mirror onboarding project creation#1077
betegon merged 1 commit into
mainfrom
fix/init-project-creation-onboarding

Conversation

@betegon

@betegon betegon commented Jun 8, 2026

Copy link
Copy Markdown
Member

Summary

  • Mirrors Sentry frontend onboarding project creation in sentry init: explicit --team stays strict, implicit creation chooses Team Admin teams, and no Team Admin team uses the org-scoped auto-team endpoint.
  • Stops treating arbitrary member teams as good implicit defaults, so init does not pick a team-scoped endpoint the user cannot use.
  • Adds clearer guidance when member project creation is disabled and covers the preflight/tool routing with focused tests.

Test plan

  • pnpm exec biome check --no-errors-on-unmatched src/lib/init/preflight.ts src/lib/init/tools/create-sentry-project.ts src/lib/init/project-creation-errors.ts test/lib/init/preflight.test.ts test/lib/init/tools/create-sentry-project.test.ts
  • pnpm vitest run test/lib/init/preflight.test.ts test/lib/init/tools/create-sentry-project.test.ts
  • pnpm run generate:schema
  • pnpm run typecheck
  • git diff --check

@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

✅ Patch coverage is 93.02%. Project has 4835 uncovered lines.
✅ Project coverage is 81.53%. Comparing base (base) to head (head).

Files with missing lines (1)
File Patch % Lines
src/lib/init/preflight.ts 90.32% ⚠️ 3 Missing and 2 partials
Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    81.52%    81.53%    +0.01%
==========================================
  Files          373       374        +1
  Lines        26141     26173       +32
  Branches     17052     17080       +28
==========================================
+ Hits         21309     21338       +29
- Misses        4832      4835        +3
- Partials      1769      1769         —

Generated by Codecov Action

@betegon betegon marked this pull request as ready for review June 8, 2026 10:40
@betegon betegon merged commit b42e153 into main Jun 8, 2026
27 checks passed
@betegon betegon deleted the fix/init-project-creation-onboarding branch June 8, 2026 10:47
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.

1 participant