Skip to content

Commit 109c6ef

Browse files
authored
feat: add framework to deploy properties (#322)
* feat: add framework to deploy * feat: accept framework with deploy update
1 parent 293f50b commit 109c6ef

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

go/models/deploy.go

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/models/deploy_files.go

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/porcelain/deploy.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ type DeployOptions struct {
8383
Title string
8484
Branch string
8585
CommitRef string
86+
Framework string
8687
UploadTimeout time.Duration
8788
PreProcessTimeout time.Duration
8889

@@ -220,9 +221,10 @@ func (n *Netlify) DoDeploy(ctx context.Context, options *DeployOptions, deploy *
220221
options.functions = functions
221222

222223
deployFiles := &models.DeployFiles{
223-
Files: options.files.Sums,
224-
Draft: options.IsDraft,
225-
Async: n.overCommitted(options.files),
224+
Files: options.files.Sums,
225+
Draft: options.IsDraft,
226+
Async: n.overCommitted(options.files),
227+
Framework: options.Framework,
226228
}
227229
if options.functions != nil {
228230
deployFiles.Functions = options.functions.Sums

swagger.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2360,6 +2360,8 @@ definitions:
23602360
properties:
23612361
large_media_enabled:
23622362
type: boolean
2363+
framework:
2364+
type: string
23632365
deployFiles:
23642366
type: object
23652367
properties:
@@ -2373,6 +2375,8 @@ definitions:
23732375
type: object
23742376
branch:
23752377
type: string
2378+
framework:
2379+
type: string
23762380
buildStatus:
23772381
type: object
23782382
properties:

0 commit comments

Comments
 (0)