@@ -13,42 +13,42 @@ import (
1313// `post_environment_start` field indicates that the automation should be triggered
1414// after the environment has started. The `post_devcontainer_start` field indicates
1515// that the automation should be triggered after the dev container has started.
16- type AutomationTrigge struct {
17- Manual bool `json:"manual"`
18- PostDevcontainerStart bool `json:"postDevcontainerStart"`
19- PostEnvironmentStart bool `json:"postEnvironmentStart"`
20- JSON automationTriggeJSON `json:"-"`
16+ type AutomationTrigger struct {
17+ Manual bool `json:"manual"`
18+ PostDevcontainerStart bool `json:"postDevcontainerStart"`
19+ PostEnvironmentStart bool `json:"postEnvironmentStart"`
20+ JSON automationTriggerJSON `json:"-"`
2121}
2222
23- // automationTriggeJSON contains the JSON metadata for the struct
24- // [AutomationTrigge ]
25- type automationTriggeJSON struct {
23+ // automationTriggerJSON contains the JSON metadata for the struct
24+ // [AutomationTrigger ]
25+ type automationTriggerJSON struct {
2626 Manual apijson.Field
2727 PostDevcontainerStart apijson.Field
2828 PostEnvironmentStart apijson.Field
2929 raw string
3030 ExtraFields map [string ]apijson.Field
3131}
3232
33- func (r * AutomationTrigge ) UnmarshalJSON (data []byte ) (err error ) {
33+ func (r * AutomationTrigger ) UnmarshalJSON (data []byte ) (err error ) {
3434 return apijson .UnmarshalRoot (data , r )
3535}
3636
37- func (r automationTriggeJSON ) RawJSON () string {
37+ func (r automationTriggerJSON ) RawJSON () string {
3838 return r .raw
3939}
4040
4141// An AutomationTrigger represents a trigger for an automation action. The
4242// `post_environment_start` field indicates that the automation should be triggered
4343// after the environment has started. The `post_devcontainer_start` field indicates
4444// that the automation should be triggered after the dev container has started.
45- type AutomationTriggeParam struct {
45+ type AutomationTriggerParam struct {
4646 Manual param.Field [bool ] `json:"manual"`
4747 PostDevcontainerStart param.Field [bool ] `json:"postDevcontainerStart"`
4848 PostEnvironmentStart param.Field [bool ] `json:"postEnvironmentStart"`
4949}
5050
51- func (r AutomationTriggeParam ) MarshalJSON () (data []byte , err error ) {
51+ func (r AutomationTriggerParam ) MarshalJSON () (data []byte , err error ) {
5252 return apijson .MarshalRoot (r )
5353}
5454
@@ -924,8 +924,8 @@ type TaskMetadata struct {
924924 // the task in user interactions (e.g. the CLI).
925925 Reference string `json:"reference"`
926926 // triggered_by is a list of trigger that start the task.
927- TriggeredBy []AutomationTrigge `json:"triggeredBy"`
928- JSON taskMetadataJSON `json:"-"`
927+ TriggeredBy []AutomationTrigger `json:"triggeredBy"`
928+ JSON taskMetadataJSON `json:"-"`
929929}
930930
931931// taskMetadataJSON contains the JSON metadata for the struct [TaskMetadata]
@@ -1052,7 +1052,7 @@ type TaskMetadataParam struct {
10521052 // the task in user interactions (e.g. the CLI).
10531053 Reference param.Field [string ] `json:"reference"`
10541054 // triggered_by is a list of trigger that start the task.
1055- TriggeredBy param.Field [[]AutomationTriggeParam ] `json:"triggeredBy"`
1055+ TriggeredBy param.Field [[]AutomationTriggerParam ] `json:"triggeredBy"`
10561056}
10571057
10581058func (r TaskMetadataParam ) MarshalJSON () (data []byte , err error ) {
0 commit comments