From 9e3f06972babc3d11b5c9cfb0f369c1a62293ff9 Mon Sep 17 00:00:00 2001 From: noah Date: Wed, 22 Sep 2021 22:06:37 +0900 Subject: [PATCH 1/2] Fix the type of payload --- vo/config.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vo/config.go b/vo/config.go index f1508b13..6f06c02f 100644 --- a/vo/config.go +++ b/vo/config.go @@ -18,12 +18,12 @@ type ( Name string `json:"name" yaml:"name"` // Github parameters of deployment. - Task *string `json:"task" yaml:"task"` - Description *string `json:"description" yaml:"description"` - AutoMerge *bool `json:"auto_merge" yaml:"auto_merge"` - RequiredContexts *[]string `json:"required_contexts,omitempty" yaml:"required_contexts"` - Payload *string `json:"payload" yaml:"payload"` - ProductionEnvironment *bool `json:"production_environment" yaml:"production_environment"` + Task *string `json:"task" yaml:"task"` + Description *string `json:"description" yaml:"description"` + AutoMerge *bool `json:"auto_merge" yaml:"auto_merge"` + RequiredContexts *[]string `json:"required_contexts,omitempty" yaml:"required_contexts"` + Payload interface{} `json:"payload" yaml:"payload"` + ProductionEnvironment *bool `json:"production_environment" yaml:"production_environment"` // Approval is the configuration of Approval, // It is disabled when it is empty. From ed2bdf9779b499655554511021669ee57a11e38b Mon Sep 17 00:00:00 2001 From: noah Date: Wed, 22 Sep 2021 22:07:00 +0900 Subject: [PATCH 2/2] Fix doc for deploy.yml --- docs/references/deploy.yml.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/references/deploy.yml.md b/docs/references/deploy.yml.md index c93a7c13..e1797043 100644 --- a/docs/references/deploy.yml.md +++ b/docs/references/deploy.yml.md @@ -10,6 +10,7 @@ Field |Type |Required |Description `description` |*string* |`false` |This field is the short description of the deployment. `auto_merge` |*boolean* |`false` |This field is used to ensure that the requested ref is not behind the repository's default branch. If you deploy with the commit or the tag you need to set `false`. For rollback, Gitploy set the field `false`. `required_contexts` |*[]string* |`false` |This field allows you to specify a subset of contexts that must be success. +`payload` |*object* or *string* |`false` |This field is JSON payload with extra information about the deployment. `production_environment` |*boolean* |`false` |This field specifies whether this runtime environment is production or not. `approval` |*[Approval](#approval)* |`false` |This field configures approval.