Skip to content
Open
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
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-ffc8cf0ed565636356f70cba5521094ee367d0b30bacb266a70f4ea98889c74c.yml
openapi_spec_hash: bf1abc17445dd410c3c3f8607c5a4937
config_hash: 843d5f356bfb6295862722a8d71d08e0
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.14.0 (2026-04-08)

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)
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
68 changes: 0 additions & 68 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
12 changes: 0 additions & 12 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 @@ -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"),
}),
Expand Down Expand Up @@ -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"),
}),
Expand Down
6 changes: 2 additions & 4 deletions environmentautomation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}),
},
Expand All @@ -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}),
},
Expand Down
6 changes: 2 additions & 4 deletions environmentautomationservice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down Expand Up @@ -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{
Expand Down
6 changes: 2 additions & 4 deletions environmentautomationtask_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}{}),
}),
}),
})
Expand Down Expand Up @@ -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{}{}),
}),
}),
})
Expand Down
2 changes: 1 addition & 1 deletion internal/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

package internal

const PackageVersion = "0.13.0" // x-release-please-version
const PackageVersion = "0.14.0" // x-release-please-version
9 changes: 1 addition & 8 deletions shared/shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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) {
Expand Down