diff --git a/.release-please-manifest.json b/.release-please-manifest.json index d52d2b9..a26ebfc 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.13.0" + ".": "0.14.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 82c3873..14a1d63 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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-5ffe9b518bd3a240d0262f71b53b207da01ef03d7532ce3c906ec42401efec96.yml +openapi_spec_hash: 4abaf13d8709ebb1af302ecab14f74df +config_hash: 459bd8a85f3cca1801bd9d5c3462cee9 diff --git a/CHANGELOG.md b/CHANGELOG.md index a4864f2..595405e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.14.0 (2026-04-09) + +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:** remove Terminal field from RunsOn type ([5b02fe5](https://github.com/gitpod-io/gitpod-sdk-go/commit/5b02fe5111f66ac18a52efb079dcc0a86d82181a)) +* **types:** extract Report types to top-level from WorkflowStep ([d58de25](https://github.com/gitpod-io/gitpod-sdk-go/commit/d58de258a0f8f2f3e1400778b07b91d4ff5ee91e)) + ## 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) diff --git a/README.md b/README.md index 212b803..8e810cf 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Or to pin the 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' ``` diff --git a/automation.go b/automation.go index 4cf5f52..34c9a08 100644 --- a/automation.go +++ b/automation.go @@ -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:"-"` @@ -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 @@ -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: @@ -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"` } @@ -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: diff --git a/automation_test.go b/automation_test.go index bfb8c99..a059847 100644 --- a/automation_test.go +++ b/automation_test.go @@ -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"), }), @@ -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"), }), @@ -183,9 +177,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"), }), @@ -216,9 +207,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"), }), diff --git a/environmentautomation_test.go b/environmentautomation_test.go index c8ad014..55ecae4 100644 --- a/environmentautomation_test.go +++ b/environmentautomation_test.go @@ -44,8 +44,7 @@ func TestEnvironmentAutomationUpsertWithOptionalParams(t *testing.T) { Environment: gitpod.F([]string{"string"}), Image: gitpod.F("x"), }), - Machine: gitpod.F[any](map[string]interface{}{}), - Terminal: gitpod.F[any](map[string]interface{}{}), + Machine: gitpod.F[any](map[string]interface{}{}), }), TriggeredBy: gitpod.F([]gitpod.AutomationsFileServicesTriggeredBy{gitpod.AutomationsFileServicesTriggeredByPostDevcontainerStart}), }, @@ -61,8 +60,7 @@ func TestEnvironmentAutomationUpsertWithOptionalParams(t *testing.T) { Environment: gitpod.F([]string{"string"}), Image: gitpod.F("x"), }), - Machine: gitpod.F[any](map[string]interface{}{}), - Terminal: gitpod.F[any](map[string]interface{}{}), + Machine: gitpod.F[any](map[string]interface{}{}), }), TriggeredBy: gitpod.F([]gitpod.AutomationsFileTasksTriggeredBy{gitpod.AutomationsFileTasksTriggeredByPostEnvironmentStart}), }, diff --git a/environmentautomationservice_test.go b/environmentautomationservice_test.go index ff0f3d8..e9421b5 100644 --- a/environmentautomationservice_test.go +++ b/environmentautomationservice_test.go @@ -70,8 +70,7 @@ func TestEnvironmentAutomationServiceNewWithOptionalParams(t *testing.T) { Environment: gitpod.F([]string{"string"}), Image: gitpod.F("x"), }), - Machine: gitpod.F[any](map[string]interface{}{}), - Terminal: gitpod.F[any](map[string]interface{}{}), + Machine: gitpod.F[any](map[string]interface{}{}), }), Session: gitpod.F("session"), SpecVersion: gitpod.F("specVersion"), @@ -161,8 +160,7 @@ func TestEnvironmentAutomationServiceUpdateWithOptionalParams(t *testing.T) { Environment: gitpod.F([]string{"string"}), Image: gitpod.F("x"), }), - Machine: gitpod.F[any](map[string]interface{}{}), - Terminal: gitpod.F[any](map[string]interface{}{}), + Machine: gitpod.F[any](map[string]interface{}{}), }), }), Status: gitpod.F(gitpod.EnvironmentAutomationServiceUpdateParamsStatus{ diff --git a/environmentautomationtask_test.go b/environmentautomationtask_test.go index 21a0f71..3d110cc 100644 --- a/environmentautomationtask_test.go +++ b/environmentautomationtask_test.go @@ -65,8 +65,7 @@ func TestEnvironmentAutomationTaskNewWithOptionalParams(t *testing.T) { Environment: gitpod.F([]string{"string"}), Image: gitpod.F("x"), }), - Machine: gitpod.F[any](map[string]interface{}{}), - Terminal: gitpod.F[any](map[string]interface{}{}), + Machine: gitpod.F[any](map[string]interface{}{}), }), }), }) @@ -150,8 +149,7 @@ func TestEnvironmentAutomationTaskUpdateWithOptionalParams(t *testing.T) { Environment: gitpod.F([]string{"string"}), Image: gitpod.F("x"), }), - Machine: gitpod.F[any](map[string]interface{}{}), - Terminal: gitpod.F[any](map[string]interface{}{}), + Machine: gitpod.F[any](map[string]interface{}{}), }), }), }) diff --git a/internal/version.go b/internal/version.go index 871f096..870e575 100644 --- a/internal/version.go +++ b/internal/version.go @@ -2,4 +2,4 @@ package internal -const PackageVersion = "0.13.0" // x-release-please-version +const PackageVersion = "0.14.0" // x-release-please-version diff --git a/shared/shared.go b/shared/shared.go index 19afda4..7522185 100644 --- a/shared/shared.go +++ b/shared/shared.go @@ -567,17 +567,13 @@ type RunsOn struct { Docker RunsOnDocker `json:"docker"` // Machine runs the service/task directly on the VM/machine level. Machine interface{} `json:"machine"` - // Terminal runs the service inside a managed PTY terminal in the devcontainer. - // Users can attach to the terminal interactively via the terminal API. - Terminal interface{} `json:"terminal"` - JSON runsOnJSON `json:"-"` + JSON runsOnJSON `json:"-"` } // runsOnJSON contains the JSON metadata for the struct [RunsOn] type runsOnJSON struct { Docker apijson.Field Machine apijson.Field - Terminal apijson.Field raw string ExtraFields map[string]apijson.Field } @@ -616,9 +612,6 @@ type RunsOnParam struct { Docker param.Field[RunsOnDockerParam] `json:"docker"` // Machine runs the service/task directly on the VM/machine level. Machine param.Field[interface{}] `json:"machine"` - // Terminal runs the service inside a managed PTY terminal in the devcontainer. - // Users can attach to the terminal interactively via the terminal API. - Terminal param.Field[interface{}] `json:"terminal"` } func (r RunsOnParam) MarshalJSON() (data []byte, err error) {