Skip to content

Commit e9abdda

Browse files
committed
docs(webapp): clarify dev branch identity scoping
1 parent ac85969 commit e9abdda

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/webapp/app/services/upsertBranch.server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ export class UpsertBranchService {
146146
const apiKey = createApiKeyForEnv(parentEnvironment.type);
147147
const pkApiKey = createPkApiKeyForEnv(parentEnvironment.type);
148148
const isDevelopmentBranch = parentEnvironment.type === "DEVELOPMENT";
149-
// Dev branch slugs are member-scoped, but shortcodes remain project-scoped.
150-
// The parent shortcode is already unique within the project, so it gives
151-
// each member's branch a stable, readable shortcode without a migration.
149+
// Dev branches can share a slug across members, so their identity is scoped by
150+
// orgMemberId. Shortcodes remain project-scoped and use the parent's unique
151+
// shortcode to distinguish otherwise identical branch slugs.
152152
const shortcode = isDevelopmentBranch
153153
? `${branchSlug}-${parentEnvironment.shortcode}`
154154
: branchSlug;

0 commit comments

Comments
 (0)