This repository was archived by the owner on Oct 23, 2026. It is now read-only.
Repository navigation
feat(project): create multiple projects in one command - #1191
Merged
Merged
Conversation
Contributor
|
Contributor
Codecov Results 📊✅ Patch coverage is 93.67%. Project has 5478 uncovered lines. Files with missing lines (3)
Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 81.69% 81.75% +0.06%
==========================================
Files 426 427 +1
Lines 29909 30009 +100
Branches 19433 19524 +91
==========================================
+ Hits 24431 24531 +100
- Misses 5478 5478 —
- Partials 2035 2040 +5Generated by Codecov Action |
betegon
marked this pull request as ready for review
July 3, 2026 14:31
sentry project create now accepts any number of [<org>/]<name>:<platform> pairs in one invocation, creating each project under the same resolved org. The platform is always attached with ":" — there is no space-separated form, with or without an explicit org, matching the org/project convention used elsewhere in the CLI (org optional, auto-detected when omitted). Rebased onto the pnpm-workspace monorepo layout (src/ moved under packages/cli/, docs under apps/cli-docs/); no unrelated files were touched during the move. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
betegon
force-pushed
the
fix/project-create-multiple
branch
from
August 3, 2026 14:40
954da7d to
dec974a
Compare
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit dec974a. Configure here.
…r a batch teamAutoCreateSlug was always slugify(parsed[0].name), and createOneProject combined it with `?? expectedSlug` — which doesn't fall back on an empty string, only null/undefined. A first project name that slugifies to "" (punctuation-only or non-ASCII) disabled team auto-create for the whole batch in an org with no teams, even when a later project's own name would have produced a usable slug. Search the whole batch for the first non-empty slug instead of hard-coding parsed[0]. Found by Cursor Bugbot on PR #1191. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
BYK
pushed a commit
that referenced
this pull request
Aug 3, 2026
## Summary - PR #1191 (merged as b421031) introduced the colon-only syntax for `sentry project create` — `[<org>/]<name>:<platform>...`, no space-separated form. That decision (rationale, rejected alternatives, and implementation pointers) was distilled by the background knowledge process but never reached `main`: the source branch was squash-merged and its remote ref deleted before the `.lore.md` commit landed, so it was stranded on an orphaned re-created branch. - This PR carries over just those two `.lore.md` entries: - `sentry project create: only colon forms valid — space forms removed entirely` - `project create: explain product rationale before making code changes` ## Test plan - `.lore.md`-only change, no code touched. --------- Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
5 tasks
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
sentry project createcan now create any number of projects in one invocation. Every project is a[<org>/]<name>:<platform>pair — the platform is always attached with:. There is no space-separated form; we do not add a--platform/-pflag either.CLI contract
project1:javascriptacme/project1:javascriptproject1:javascript project2:python-djangoproject1 javascript:— useproject1:javascriptweb api node--platform nodeParsing is deterministic:
[<org>/]<name>:<platform>pair.:at all gets a friendlier "platform is required" error instead of the generic syntax error.:separates name and platform, so a project name containing a colon remains valid:sentry project create api:europe:node.Examples
Platform values use canonical Sentry identifiers. For example, Django is
python-django, notdjango.Compatibility and intentional behavior change
We're reducing this command down to exactly one shape:
[<org>/]<name>:<platform>, org optional, single or batch. That mirrors theorg/projectconvention used everywhere else in the CLI (org can be omitted and auto-detected) while keeping the platform separator unambiguous.The intentional breaking surface:
<name> <platform>form is removed entirely, with or without an explicit org. It required a special case in the positional parser to disambiguate a plain two-word invocation fromname:platformbatch pairs, and matching legacy shell-completion logic, for no real benefit — the colon form already covers both the org-optional and org-explicit cases.sentry project create my-app nodeis now rejected with a message pointing atmy-app:node.web api node, are deliberately not supported. Multi-project calls must pair every project with its platform.Implementation details
api:europe) is still valid via the final-colon-as-separator rule (api:europe:node).Test plan
pnpm exec vitest run test/commands/project/create.test.ts test/lib/complete.test.ts test/lib/completions.test.ts test/lib/help-positional.test.ts test/lib/introspect.test.ts test/script/generate-skill-markdown.test.ts— 235 passedpnpm run typecheckpnpm run lintpnpm run check:errorspnpm run check:fragmentspnpm run check:depsRelated Sentry issue: CLI-1YY