Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/client/endpoints/applications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export interface ApplicationDetail extends Application {
docker_context: string | null;
allow_deploy_paths: string[];
ignore_deploy_paths: string[];
git_lfs_enabled: boolean;
created_by: string | null;
}

Expand Down Expand Up @@ -271,6 +272,7 @@ export interface UpdateApplicationInput {
buildpacks?: Array<{ order: number; source: string }>;
allow_deploy_paths?: string[];
ignore_deploy_paths?: string[];
git_lfs_enabled?: boolean;
source?: string;
git_type?: string;
repo_url?: string;
Expand Down
2 changes: 2 additions & 0 deletions src/client/endpoints/static-sites.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export interface StaticSite {
is_preview_enabled: boolean;
allow_deploy_paths: string[];
ignore_deploy_paths: string[];
git_lfs_enabled: boolean;
created_at: string;
updated_at: string;
}
Expand Down Expand Up @@ -51,6 +52,7 @@ export interface UpdateStaticSiteBody {
is_preview_enabled?: boolean;
allow_deploy_paths?: string[];
ignore_deploy_paths?: string[];
git_lfs_enabled?: boolean;
}

export interface Deployment {
Expand Down
6 changes: 6 additions & 0 deletions src/commands/apps/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ export const appsUpdateCommand = makeUpdateCommand({
{ flags: '--build-type <type>', description: 'Build type' },
{ flags: '--dockerfile-path <path>', description: 'Dockerfile path' },
{ flags: '--docker-image <image>', description: 'Docker image' },
{
flags: '--git-lfs-enabled <bool>',
description: 'Fetch Git LFS objects during source checkout (true/false)',
},
],
displayFields: (item: Record<string, unknown>) => ({
ID: item['id'],
Expand All @@ -23,6 +27,8 @@ export const appsUpdateCommand = makeUpdateCommand({
if (opts['buildType']) body['build_type'] = opts['buildType'];
if (opts['dockerfilePath']) body['dockerfile_path'] = opts['dockerfilePath'];
if (opts['dockerImage']) body['docker_image'] = opts['dockerImage'];
if (opts['gitLfsEnabled'] !== undefined)
body['git_lfs_enabled'] = opts['gitLfsEnabled'] === 'true';
return client.patch(`/applications/${id}`, body);
},
});
6 changes: 6 additions & 0 deletions src/commands/static-sites/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ export const staticSitesUpdateCommand = makeUpdateCommand({
flags: '--ignore-deploy-paths <paths>',
description: 'Glob patterns for paths to exclude from deploy triggers (comma-separated)',
},
{
flags: '--git-lfs-enabled <bool>',
description: 'Fetch Git LFS objects during source checkout (true/false)',
},
],
displayFields: (item: Record<string, unknown>) => ({
ID: item['id'],
Expand All @@ -36,6 +40,8 @@ export const staticSitesUpdateCommand = makeUpdateCommand({
body['ignore_deploy_paths'] = (opts['ignoreDeployPaths'] as string)
.split(',')
.map((s: string) => s.trim());
if (opts['gitLfsEnabled'] !== undefined)
body['git_lfs_enabled'] = opts['gitLfsEnabled'] === 'true';
return client.patch(`/static-sites/${id}`, body);
},
});
Loading