Skip to content

Commit e5ecf6e

Browse files
authored
Merge pull request #507 from netlify/antonio/add-framework-version-deploy-files
feat: Added framework_version
2 parents 82b1051 + 1a86b73 commit e5ecf6e

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

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: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ type DeployOptions struct {
9191
Branch string
9292
CommitRef string
9393
Framework string
94+
FrameworkVersion string
9495
UploadTimeout time.Duration
9596
PreProcessTimeout time.Duration
9697

@@ -262,10 +263,11 @@ func (n *Netlify) DoDeploy(ctx context.Context, options *DeployOptions, deploy *
262263
options.functionsConfig = functionsConfig
263264

264265
deployFiles := &models.DeployFiles{
265-
Files: options.files.Sums,
266-
Draft: options.IsDraft,
267-
Async: n.overCommitted(options.files),
268-
Framework: options.Framework,
266+
Files: options.files.Sums,
267+
Draft: options.IsDraft,
268+
Async: n.overCommitted(options.files),
269+
Framework: options.Framework,
270+
FrameworkVersion: options.FrameworkVersion,
269271
}
270272
if options.functions != nil {
271273
deployFiles.Functions = options.functions.Sums

swagger.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3036,6 +3036,8 @@ definitions:
30363036
type: string
30373037
framework:
30383038
type: string
3039+
framework_version:
3040+
type: string
30393041
pluginParams:
30403042
type: object
30413043
properties:

0 commit comments

Comments
 (0)