Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit 5827e5f

Browse files
author
Noah Hanjun Lee
authored
fix: fix the type of payload (#110)
* Fix the type of payload * Fix doc for deploy.yml
1 parent 363e022 commit 5827e5f

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

docs/references/deploy.yml.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Field |Type |Required |Description
1010
`description` |*string* |`false` |This field is the short description of the deployment.
1111
`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`.
1212
`required_contexts` |*[]string* |`false` |This field allows you to specify a subset of contexts that must be success.
13+
`payload` |*object* or *string* |`false` |This field is JSON payload with extra information about the deployment.
1314
`production_environment` |*boolean* |`false` |This field specifies whether this runtime environment is production or not.
1415
`approval` |*[Approval](#approval)* |`false` |This field configures approval.
1516

vo/config.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ type (
1818
Name string `json:"name" yaml:"name"`
1919

2020
// Github parameters of deployment.
21-
Task *string `json:"task" yaml:"task"`
22-
Description *string `json:"description" yaml:"description"`
23-
AutoMerge *bool `json:"auto_merge" yaml:"auto_merge"`
24-
RequiredContexts *[]string `json:"required_contexts,omitempty" yaml:"required_contexts"`
25-
Payload *string `json:"payload" yaml:"payload"`
26-
ProductionEnvironment *bool `json:"production_environment" yaml:"production_environment"`
21+
Task *string `json:"task" yaml:"task"`
22+
Description *string `json:"description" yaml:"description"`
23+
AutoMerge *bool `json:"auto_merge" yaml:"auto_merge"`
24+
RequiredContexts *[]string `json:"required_contexts,omitempty" yaml:"required_contexts"`
25+
Payload interface{} `json:"payload" yaml:"payload"`
26+
ProductionEnvironment *bool `json:"production_environment" yaml:"production_environment"`
2727

2828
// Approval is the configuration of Approval,
2929
// It is disabled when it is empty.

0 commit comments

Comments
 (0)