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
Commit 5b6142d
Browse filesBrowse the repository at this point in the historyBrowse files
feat(webapp): make development environments branchable (API + auth)
Extend branch support to DEVELOPMENT environments alongside PREVIEW.
- UpsertBranchRequestBody / branches API accept env "development" as well
as "preview"; the upsert service resolves the parent env by slug
("preview" or "dev") and scopes dev branches per org member.
- checkBranchLimit applies a separate "branchesDev" limit and filters dev
branches by the owning org member.
- API-key and JWT auth resolve branch child environments for both PREVIEW
and DEVELOPMENT parents; findEnvironmentByApiKey returns the dev branch
child when a non-default branch is requested.
- archiveBranch refuses to archive the default dev branch and reports the
branch type so callers can route appropriately.
- Presenters and presence are env/branch aware.
Backwards compatible with the existing CLI: requests that send
env "preview" (or no dev branch) behave exactly as before.
TRI-8726
Centralize the `"default"` dev-branch sentinel behind a shared `DEFAULT_DEV_BRANCH` constant and `isDefaultDevBranch()` helper in `@trigger.dev/core/v3/utils/gitBranch`, replacing the hardcoded string literals duplicated across the CLI and server. No behavior change — `trigger dev` still targets the root development environment when no branch is specified.
0 commit comments