Skip to content

Commit

Permalink
feat: add integration when creating a new project through cli (#6639)
Browse files Browse the repository at this point in the history
  • Loading branch information
RostiMelk authored Jun 5, 2024
1 parent 6693c54 commit ac214b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ export default async function initSanity(
displayName: projectName,
organizationId: await getOrganizationId(organizations),
subscription: selectedPlan ? {planId: selectedPlan} : undefined,
metadata: {coupon: intendedCoupon},
metadata: {coupon: intendedCoupon, integration: 'cli'},
}).then((response) => ({
...response,
isFirstProject: isUsersFirstProject,
Expand Down
5 changes: 4 additions & 1 deletion packages/@sanity/cli/src/actions/project/createProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ export interface CreateProjectOptions {
displayName: string
organizationId?: string
subscription?: {planId: string}
metadata?: {coupon?: string}
metadata?: {
coupon?: string
integration?: string
}
}

export function createProject(
Expand Down

0 comments on commit ac214b8

Please sign in to comment.