Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
d58de25
feat(types): extract Report types to top-level from WorkflowStep
stainless-app[bot] Apr 2, 2026
a3eca9e
codegen metadata
stainless-app[bot] Apr 3, 2026
dbad708
codegen metadata
stainless-app[bot] Apr 3, 2026
4fb3f49
codegen metadata
stainless-app[bot] Apr 6, 2026
cbddf2e
codegen metadata
stainless-app[bot] Apr 7, 2026
b457425
codegen metadata
stainless-app[bot] Apr 8, 2026
c2e999e
codegen metadata
stainless-app[bot] Apr 8, 2026
5b02fe5
feat(api): remove Terminal field from RunsOn type
stainless-app[bot] Apr 8, 2026
eef96f4
codegen metadata
stainless-app[bot] Apr 9, 2026
22de80f
codegen metadata
stainless-app[bot] Apr 9, 2026
991b8e3
codegen metadata
stainless-app[bot] Apr 9, 2026
9253ba5
codegen metadata
stainless-app[bot] Apr 10, 2026
0cc561f
codegen metadata
stainless-app[bot] Apr 10, 2026
9fe1925
feat(api): add old_path field to environment git changed file model
stainless-app[bot] Apr 10, 2026
f8b376e
chore(internal): regenerate SDK with no functional changes
stainless-app[bot] Apr 10, 2026
efe0872
feat(types): add prebuild value to AutomationsFileServicesTriggeredBy…
stainless-app[bot] Apr 13, 2026
0f53078
codegen metadata
stainless-app[bot] Apr 13, 2026
52434f8
codegen metadata
stainless-app[bot] Apr 14, 2026
71d164a
feat(api): add integration_id, update webhook_id in pull request trigger
stainless-app[bot] Apr 14, 2026
105a24c
codegen metadata
stainless-app[bot] Apr 15, 2026
8294acc
codegen metadata
stainless-app[bot] Apr 15, 2026
6e99a72
codegen metadata
stainless-app[bot] Apr 15, 2026
6e3178e
feat(api): add port_authentication capability to RunnerCapability
stainless-app[bot] Apr 16, 2026
c818de4
codegen metadata
stainless-app[bot] Apr 16, 2026
26ebe85
codegen metadata
stainless-app[bot] Apr 16, 2026
d62f31f
codegen metadata
stainless-app[bot] Apr 16, 2026
ac58c85
feat(api): add review_requested event to workflow trigger pull reques…
stainless-app[bot] Apr 17, 2026
d2a744b
feat(api): add OPUS_4_7 to agent supported models enum
stainless-app[bot] Apr 17, 2026
fbbead6
release: 0.14.0
stainless-app[bot] Apr 17, 2026
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
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.13.0"
".": "0.14.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 193
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-dabc0ff98cd7b9d91850b3c0dbada4e487e698333cd0b7257959e4819d9a29d6.yml
openapi_spec_hash: b974bdc6025a26cfa62857bf74ec379b
config_hash: 13514c5eb422e4eb01767e718798de1e
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-0e20f536f7f833dd7205eaadd72826bd527a3ed91fcb006323e3232550abb04e.yml
openapi_spec_hash: 7a96aca1a75735a1664edd091b277940
config_hash: 25c7c72de891ed240ee62c4fb9a99756
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## 0.14.0 (2026-04-17)

Full Changelog: [v0.13.0...v0.14.0](https://github.com/gitpod-io/gitpod-sdk-go/compare/v0.13.0...v0.14.0)

### Features

* **api:** add integration_id, update webhook_id in pull request trigger ([71d164a](https://github.com/gitpod-io/gitpod-sdk-go/commit/71d164aa1e7e29b16ee8531437e1e9969933aa08))
* **api:** add old_path field to environment git changed file model ([9fe1925](https://github.com/gitpod-io/gitpod-sdk-go/commit/9fe19258fc36ca036af7788f5f6a9999734c2563))
* **api:** add OPUS_4_7 to agent supported models enum ([d2a744b](https://github.com/gitpod-io/gitpod-sdk-go/commit/d2a744be9876078da2a967eea5b71e6d10709fca))
* **api:** add port_authentication capability to RunnerCapability ([6e3178e](https://github.com/gitpod-io/gitpod-sdk-go/commit/6e3178eff7946662bdd2aede907d7d86b4d003f1))
* **api:** add review_requested event to workflow trigger pull request events ([ac58c85](https://github.com/gitpod-io/gitpod-sdk-go/commit/ac58c8578b8564674f5204cadbee1a3ce89e5b94))
* **api:** remove Terminal field from RunsOn type ([5b02fe5](https://github.com/gitpod-io/gitpod-sdk-go/commit/5b02fe5111f66ac18a52efb079dcc0a86d82181a))
* **types:** add prebuild value to AutomationsFileServicesTriggeredBy enum ([efe0872](https://github.com/gitpod-io/gitpod-sdk-go/commit/efe08724860d1d93c1782725f688a588b755be40))
* **types:** extract Report types to top-level from WorkflowStep ([d58de25](https://github.com/gitpod-io/gitpod-sdk-go/commit/d58de258a0f8f2f3e1400778b07b91d4ff5ee91e))


### Chores

* **internal:** regenerate SDK with no functional changes ([f8b376e](https://github.com/gitpod-io/gitpod-sdk-go/commit/f8b376ef7d1eebbdf66252e7ec29893d2fc1541f))

## 0.13.0 (2026-04-02)

Full Changelog: [v0.12.0...v0.13.0](https://github.com/gitpod-io/gitpod-sdk-go/compare/v0.12.0...v0.13.0)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Or to pin the version:
<!-- x-release-please-start-version -->

```sh
go get -u 'github.com/gitpod-io/gitpod-sdk-go@v0.13.0'
go get -u 'github.com/gitpod-io/gitpod-sdk-go@v0.14.0'
```

<!-- x-release-please-end -->
Expand Down
3 changes: 2 additions & 1 deletion agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -1197,6 +1197,7 @@ const (
AgentExecutionStatusSupportedModelSupportedModelOpus4_5Extended AgentExecutionStatusSupportedModel = "SUPPORTED_MODEL_OPUS_4_5_EXTENDED"
AgentExecutionStatusSupportedModelSupportedModelOpus4_6 AgentExecutionStatusSupportedModel = "SUPPORTED_MODEL_OPUS_4_6"
AgentExecutionStatusSupportedModelSupportedModelOpus4_6Extended AgentExecutionStatusSupportedModel = "SUPPORTED_MODEL_OPUS_4_6_EXTENDED"
AgentExecutionStatusSupportedModelSupportedModelOpus4_7 AgentExecutionStatusSupportedModel = "SUPPORTED_MODEL_OPUS_4_7"
AgentExecutionStatusSupportedModelSupportedModelHaiku4_5 AgentExecutionStatusSupportedModel = "SUPPORTED_MODEL_HAIKU_4_5"
AgentExecutionStatusSupportedModelSupportedModelOpenAI4O AgentExecutionStatusSupportedModel = "SUPPORTED_MODEL_OPENAI_4O"
AgentExecutionStatusSupportedModelSupportedModelOpenAI4OMini AgentExecutionStatusSupportedModel = "SUPPORTED_MODEL_OPENAI_4O_MINI"
Expand All @@ -1206,7 +1207,7 @@ const (

func (r AgentExecutionStatusSupportedModel) IsKnown() bool {
switch r {
case AgentExecutionStatusSupportedModelSupportedModelUnspecified, AgentExecutionStatusSupportedModelSupportedModelSonnet3_5, AgentExecutionStatusSupportedModelSupportedModelSonnet3_7, AgentExecutionStatusSupportedModelSupportedModelSonnet3_7Extended, AgentExecutionStatusSupportedModelSupportedModelSonnet4, AgentExecutionStatusSupportedModelSupportedModelSonnet4Extended, AgentExecutionStatusSupportedModelSupportedModelSonnet4_5, AgentExecutionStatusSupportedModelSupportedModelSonnet4_5Extended, AgentExecutionStatusSupportedModelSupportedModelSonnet4_6, AgentExecutionStatusSupportedModelSupportedModelSonnet4_6Extended, AgentExecutionStatusSupportedModelSupportedModelOpus4, AgentExecutionStatusSupportedModelSupportedModelOpus4Extended, AgentExecutionStatusSupportedModelSupportedModelOpus4_5, AgentExecutionStatusSupportedModelSupportedModelOpus4_5Extended, AgentExecutionStatusSupportedModelSupportedModelOpus4_6, AgentExecutionStatusSupportedModelSupportedModelOpus4_6Extended, AgentExecutionStatusSupportedModelSupportedModelHaiku4_5, AgentExecutionStatusSupportedModelSupportedModelOpenAI4O, AgentExecutionStatusSupportedModelSupportedModelOpenAI4OMini, AgentExecutionStatusSupportedModelSupportedModelOpenAIO1, AgentExecutionStatusSupportedModelSupportedModelOpenAIO1Mini:
case AgentExecutionStatusSupportedModelSupportedModelUnspecified, AgentExecutionStatusSupportedModelSupportedModelSonnet3_5, AgentExecutionStatusSupportedModelSupportedModelSonnet3_7, AgentExecutionStatusSupportedModelSupportedModelSonnet3_7Extended, AgentExecutionStatusSupportedModelSupportedModelSonnet4, AgentExecutionStatusSupportedModelSupportedModelSonnet4Extended, AgentExecutionStatusSupportedModelSupportedModelSonnet4_5, AgentExecutionStatusSupportedModelSupportedModelSonnet4_5Extended, AgentExecutionStatusSupportedModelSupportedModelSonnet4_6, AgentExecutionStatusSupportedModelSupportedModelSonnet4_6Extended, AgentExecutionStatusSupportedModelSupportedModelOpus4, AgentExecutionStatusSupportedModelSupportedModelOpus4Extended, AgentExecutionStatusSupportedModelSupportedModelOpus4_5, AgentExecutionStatusSupportedModelSupportedModelOpus4_5Extended, AgentExecutionStatusSupportedModelSupportedModelOpus4_6, AgentExecutionStatusSupportedModelSupportedModelOpus4_6Extended, AgentExecutionStatusSupportedModelSupportedModelOpus4_7, AgentExecutionStatusSupportedModelSupportedModelHaiku4_5, AgentExecutionStatusSupportedModelSupportedModelOpenAI4O, AgentExecutionStatusSupportedModelSupportedModelOpenAI4OMini, AgentExecutionStatusSupportedModelSupportedModelOpenAIO1, AgentExecutionStatusSupportedModelSupportedModelOpenAIO1Mini:
return true
}
return false
Expand Down
8 changes: 4 additions & 4 deletions aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ type Error = apierror.Error
// automation during a prebuild of an environment. This phase does not have user
// secrets available. The `before_snapshot` field triggers the automation after all
// prebuild tasks complete but before the snapshot is taken. This is used for tasks
// that need to run last during prebuilds, such as IDE warmup. Note: The prebuild
// and before_snapshot triggers can only be used with tasks, not services.
// that need to run last during prebuilds, such as IDE warmup. Note: The
// before_snapshot trigger can only be used with tasks, not services.
//
// This is an alias to an internal type.
type AutomationTrigger = shared.AutomationTrigger
Expand All @@ -39,8 +39,8 @@ type AutomationTrigger = shared.AutomationTrigger
// automation during a prebuild of an environment. This phase does not have user
// secrets available. The `before_snapshot` field triggers the automation after all
// prebuild tasks complete but before the snapshot is taken. This is used for tasks
// that need to run last during prebuilds, such as IDE warmup. Note: The prebuild
// and before_snapshot triggers can only be used with tasks, not services.
// that need to run last during prebuilds, such as IDE warmup. Note: The
// before_snapshot trigger can only be used with tasks, not services.
//
// This is an alias to an internal type.
type AutomationTriggerParam = shared.AutomationTriggerParam
Expand Down
102 changes: 22 additions & 80 deletions automation.go
Original file line number Diff line number Diff line change
Expand Up @@ -2496,7 +2496,6 @@ type WorkflowStep struct {
Agent WorkflowStepAgent `json:"agent"`
// WorkflowPullRequestStep represents a pull request creation step.
PullRequest WorkflowStepPullRequest `json:"pullRequest"`
Report WorkflowStepReport `json:"report"`
// WorkflowTaskStep represents a task step that executes a command.
Task WorkflowStepTask `json:"task"`
JSON workflowStepJSON `json:"-"`
Expand All @@ -2506,7 +2505,6 @@ type WorkflowStep struct {
type workflowStepJSON struct {
Agent apijson.Field
PullRequest apijson.Field
Report apijson.Field
Task apijson.Field
raw string
ExtraFields map[string]apijson.Field
Expand Down Expand Up @@ -2590,51 +2588,6 @@ func (r workflowStepPullRequestJSON) RawJSON() string {
return r.raw
}

type WorkflowStepReport struct {
// Report must have at least one output:
//
// ```
// size(this) >= 1
// ```
Outputs []WorkflowStepReportOutput `json:"outputs"`
JSON workflowStepReportJSON `json:"-"`
}

// workflowStepReportJSON contains the JSON metadata for the struct
// [WorkflowStepReport]
type workflowStepReportJSON struct {
Outputs apijson.Field
raw string
ExtraFields map[string]apijson.Field
}

func (r *WorkflowStepReport) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

func (r workflowStepReportJSON) RawJSON() string {
return r.raw
}

type WorkflowStepReportOutput struct {
JSON workflowStepReportOutputJSON `json:"-"`
}

// workflowStepReportOutputJSON contains the JSON metadata for the struct
// [WorkflowStepReportOutput]
type workflowStepReportOutputJSON struct {
raw string
ExtraFields map[string]apijson.Field
}

func (r *WorkflowStepReportOutput) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

func (r workflowStepReportOutputJSON) RawJSON() string {
return r.raw
}

// WorkflowTaskStep represents a task step that executes a command.
type WorkflowStepTask struct {
// Command must be between 1 and 20,000 characters:
Expand Down Expand Up @@ -2668,7 +2621,6 @@ type WorkflowStepParam struct {
Agent param.Field[WorkflowStepAgentParam] `json:"agent"`
// WorkflowPullRequestStep represents a pull request creation step.
PullRequest param.Field[WorkflowStepPullRequestParam] `json:"pullRequest"`
Report param.Field[WorkflowStepReportParam] `json:"report"`
// WorkflowTaskStep represents a task step that executes a command.
Task param.Field[WorkflowStepTaskParam] `json:"task"`
}
Expand Down Expand Up @@ -2718,26 +2670,6 @@ func (r WorkflowStepPullRequestParam) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}

type WorkflowStepReportParam struct {
// Report must have at least one output:
//
// ```
// size(this) >= 1
// ```
Outputs param.Field[[]WorkflowStepReportOutputParam] `json:"outputs"`
}

func (r WorkflowStepReportParam) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}

type WorkflowStepReportOutputParam struct {
}

func (r WorkflowStepReportOutputParam) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}

// WorkflowTaskStep represents a task step that executes a command.
type WorkflowStepTaskParam struct {
// Command must be between 1 and 20,000 characters:
Expand Down Expand Up @@ -2817,6 +2749,10 @@ func (r workflowTriggerJSON) RawJSON() string {
// for PRs in repositories matching the trigger context.
type WorkflowTriggerPullRequest struct {
Events []WorkflowTriggerPullRequestEvent `json:"events"`
// integration_id is the optional ID of an integration that acts as the source of
// webhook events. When set, the trigger will be activated when the webhook
// receives events.
IntegrationID string `json:"integrationId" api:"nullable" format:"uuid"`
// webhook_id is the optional ID of a webhook that this trigger is bound to. When
// set, the trigger will be activated when the webhook receives events. This allows
// multiple workflows to share a single webhook endpoint.
Expand All @@ -2827,10 +2763,11 @@ type WorkflowTriggerPullRequest struct {
// workflowTriggerPullRequestJSON contains the JSON metadata for the struct
// [WorkflowTriggerPullRequest]
type workflowTriggerPullRequestJSON struct {
Events apijson.Field
WebhookID apijson.Field
raw string
ExtraFields map[string]apijson.Field
Events apijson.Field
IntegrationID apijson.Field
WebhookID apijson.Field
raw string
ExtraFields map[string]apijson.Field
}

func (r *WorkflowTriggerPullRequest) UnmarshalJSON(data []byte) (err error) {
Expand All @@ -2845,18 +2782,19 @@ func (r workflowTriggerPullRequestJSON) RawJSON() string {
type WorkflowTriggerPullRequestEvent string

const (
WorkflowTriggerPullRequestEventPullRequestEventUnspecified WorkflowTriggerPullRequestEvent = "PULL_REQUEST_EVENT_UNSPECIFIED"
WorkflowTriggerPullRequestEventPullRequestEventOpened WorkflowTriggerPullRequestEvent = "PULL_REQUEST_EVENT_OPENED"
WorkflowTriggerPullRequestEventPullRequestEventUpdated WorkflowTriggerPullRequestEvent = "PULL_REQUEST_EVENT_UPDATED"
WorkflowTriggerPullRequestEventPullRequestEventApproved WorkflowTriggerPullRequestEvent = "PULL_REQUEST_EVENT_APPROVED"
WorkflowTriggerPullRequestEventPullRequestEventMerged WorkflowTriggerPullRequestEvent = "PULL_REQUEST_EVENT_MERGED"
WorkflowTriggerPullRequestEventPullRequestEventClosed WorkflowTriggerPullRequestEvent = "PULL_REQUEST_EVENT_CLOSED"
WorkflowTriggerPullRequestEventPullRequestEventReadyForReview WorkflowTriggerPullRequestEvent = "PULL_REQUEST_EVENT_READY_FOR_REVIEW"
WorkflowTriggerPullRequestEventPullRequestEventUnspecified WorkflowTriggerPullRequestEvent = "PULL_REQUEST_EVENT_UNSPECIFIED"
WorkflowTriggerPullRequestEventPullRequestEventOpened WorkflowTriggerPullRequestEvent = "PULL_REQUEST_EVENT_OPENED"
WorkflowTriggerPullRequestEventPullRequestEventUpdated WorkflowTriggerPullRequestEvent = "PULL_REQUEST_EVENT_UPDATED"
WorkflowTriggerPullRequestEventPullRequestEventApproved WorkflowTriggerPullRequestEvent = "PULL_REQUEST_EVENT_APPROVED"
WorkflowTriggerPullRequestEventPullRequestEventMerged WorkflowTriggerPullRequestEvent = "PULL_REQUEST_EVENT_MERGED"
WorkflowTriggerPullRequestEventPullRequestEventClosed WorkflowTriggerPullRequestEvent = "PULL_REQUEST_EVENT_CLOSED"
WorkflowTriggerPullRequestEventPullRequestEventReadyForReview WorkflowTriggerPullRequestEvent = "PULL_REQUEST_EVENT_READY_FOR_REVIEW"
WorkflowTriggerPullRequestEventPullRequestEventReviewRequested WorkflowTriggerPullRequestEvent = "PULL_REQUEST_EVENT_REVIEW_REQUESTED"
)

func (r WorkflowTriggerPullRequestEvent) IsKnown() bool {
switch r {
case WorkflowTriggerPullRequestEventPullRequestEventUnspecified, WorkflowTriggerPullRequestEventPullRequestEventOpened, WorkflowTriggerPullRequestEventPullRequestEventUpdated, WorkflowTriggerPullRequestEventPullRequestEventApproved, WorkflowTriggerPullRequestEventPullRequestEventMerged, WorkflowTriggerPullRequestEventPullRequestEventClosed, WorkflowTriggerPullRequestEventPullRequestEventReadyForReview:
case WorkflowTriggerPullRequestEventPullRequestEventUnspecified, WorkflowTriggerPullRequestEventPullRequestEventOpened, WorkflowTriggerPullRequestEventPullRequestEventUpdated, WorkflowTriggerPullRequestEventPullRequestEventApproved, WorkflowTriggerPullRequestEventPullRequestEventMerged, WorkflowTriggerPullRequestEventPullRequestEventClosed, WorkflowTriggerPullRequestEventPullRequestEventReadyForReview, WorkflowTriggerPullRequestEventPullRequestEventReviewRequested:
return true
}
return false
Expand Down Expand Up @@ -2940,6 +2878,10 @@ func (r WorkflowTriggerParam) MarshalJSON() (data []byte, err error) {
// for PRs in repositories matching the trigger context.
type WorkflowTriggerPullRequestParam struct {
Events param.Field[[]WorkflowTriggerPullRequestEvent] `json:"events"`
// integration_id is the optional ID of an integration that acts as the source of
// webhook events. When set, the trigger will be activated when the webhook
// receives events.
IntegrationID param.Field[string] `json:"integrationId" format:"uuid"`
// webhook_id is the optional ID of a webhook that this trigger is bound to. When
// set, the trigger will be activated when the webhook receives events. This allows
// multiple workflows to share a single webhook endpoint.
Expand Down
22 changes: 6 additions & 16 deletions automation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ func TestAutomationNewWithOptionalParams(t *testing.T) {
Draft: gitpod.F(true),
Title: gitpod.F("title"),
}),
Report: gitpod.F(gitpod.WorkflowStepReportParam{
Outputs: gitpod.F([]gitpod.WorkflowStepReportOutputParam{{}}),
}),
Task: gitpod.F(gitpod.WorkflowStepTaskParam{
Command: gitpod.F("command"),
}),
Expand Down Expand Up @@ -79,9 +76,6 @@ func TestAutomationNewWithOptionalParams(t *testing.T) {
Draft: gitpod.F(true),
Title: gitpod.F("title"),
}),
Report: gitpod.F(gitpod.WorkflowStepReportParam{
Outputs: gitpod.F([]gitpod.WorkflowStepReportOutputParam{{}}),
}),
Task: gitpod.F(gitpod.WorkflowStepTaskParam{
Command: gitpod.F("command"),
}),
Expand Down Expand Up @@ -109,8 +103,9 @@ func TestAutomationNewWithOptionalParams(t *testing.T) {
}),
Manual: gitpod.F[any](map[string]interface{}{}),
PullRequest: gitpod.F(gitpod.WorkflowTriggerPullRequestParam{
Events: gitpod.F([]gitpod.WorkflowTriggerPullRequestEvent{gitpod.WorkflowTriggerPullRequestEventPullRequestEventUnspecified}),
WebhookID: gitpod.F("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"),
Events: gitpod.F([]gitpod.WorkflowTriggerPullRequestEvent{gitpod.WorkflowTriggerPullRequestEventPullRequestEventUnspecified}),
IntegrationID: gitpod.F("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"),
WebhookID: gitpod.F("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"),
}),
Time: gitpod.F(gitpod.WorkflowTriggerTimeParam{
CronExpression: gitpod.F("cronExpression"),
Expand Down Expand Up @@ -183,9 +178,6 @@ func TestAutomationUpdateWithOptionalParams(t *testing.T) {
Draft: gitpod.F(true),
Title: gitpod.F("title"),
}),
Report: gitpod.F(gitpod.WorkflowStepReportParam{
Outputs: gitpod.F([]gitpod.WorkflowStepReportOutputParam{{}}),
}),
Task: gitpod.F(gitpod.WorkflowStepTaskParam{
Command: gitpod.F("command"),
}),
Expand Down Expand Up @@ -216,9 +208,6 @@ func TestAutomationUpdateWithOptionalParams(t *testing.T) {
Draft: gitpod.F(true),
Title: gitpod.F("title"),
}),
Report: gitpod.F(gitpod.WorkflowStepReportParam{
Outputs: gitpod.F([]gitpod.WorkflowStepReportOutputParam{{}}),
}),
Task: gitpod.F(gitpod.WorkflowStepTaskParam{
Command: gitpod.F("command"),
}),
Expand Down Expand Up @@ -246,8 +235,9 @@ func TestAutomationUpdateWithOptionalParams(t *testing.T) {
}),
Manual: gitpod.F[any](map[string]interface{}{}),
PullRequest: gitpod.F(gitpod.WorkflowTriggerPullRequestParam{
Events: gitpod.F([]gitpod.WorkflowTriggerPullRequestEvent{gitpod.WorkflowTriggerPullRequestEventPullRequestEventUnspecified}),
WebhookID: gitpod.F("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"),
Events: gitpod.F([]gitpod.WorkflowTriggerPullRequestEvent{gitpod.WorkflowTriggerPullRequestEventPullRequestEventUnspecified}),
IntegrationID: gitpod.F("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"),
WebhookID: gitpod.F("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"),
}),
Time: gitpod.F(gitpod.WorkflowTriggerTimeParam{
CronExpression: gitpod.F("cronExpression"),
Expand Down
4 changes: 4 additions & 0 deletions environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -1628,6 +1628,9 @@ func (r environmentStatusContentGitJSON) RawJSON() string {
type EnvironmentStatusContentGitChangedFile struct {
// ChangeType is the type of change that happened to the file
ChangeType EnvironmentStatusContentGitChangedFilesChangeType `json:"changeType"`
// old_path is the previous path of the file before a rename or copy. Only set when
// change_type is RENAMED or COPIED.
OldPath string `json:"oldPath"`
// path is the path of the file
Path string `json:"path"`
JSON environmentStatusContentGitChangedFileJSON `json:"-"`
Expand All @@ -1637,6 +1640,7 @@ type EnvironmentStatusContentGitChangedFile struct {
// struct [EnvironmentStatusContentGitChangedFile]
type environmentStatusContentGitChangedFileJSON struct {
ChangeType apijson.Field
OldPath apijson.Field
Path apijson.Field
raw string
ExtraFields map[string]apijson.Field
Expand Down
Loading