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-7366f3114f6f2fae72e3141480d2b2a67094d37391b5a068210e69ead83045f2.yml
openapi_spec_hash: aa2198d5846e9e12e09c823f64b65dca
config_hash: 843d5f356bfb6295862722a8d71d08e0
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.14.0 (2026-04-07)

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

### Features

* **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
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