Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.
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
1 change: 1 addition & 0 deletions docs/references/deploy.yml.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
12 changes: 6 additions & 6 deletions vo/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down