Skip to content

Commit e42c722

Browse files
release: 0.6.0 (#67)
* feat(client): add debug log helper * chore(ci): enable for pull requests * fix(pagination): check if page data is empty in GetNextPage * fix: don't try to deserialize as json when ResponseBodyInto is []byte * chore(ci): only run for pushes and fork pull requests * chore: lint tests * chore(internal): fix lint script for tests * chore: lint tests in subpackages * fix(client): process custom base url ahead of time * feat(client): support optional json html escaping * chore: update @stainless-api/prism-cli to v5.15.0 * chore(internal): update comment in script * feat(api): gitpod -> ona * codegen metadata * codegen metadata * chore: bump minimum go version to 1.22 * chore: update more docs for 1.22 * fix: use slices.Concat instead of sometimes modifying r.Options * chore: do not install brew dependencies in ./scripts/bootstrap by default * fix: bugfix for setting JSON keys with special characters * release: 0.6.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 853a2c0 commit e42c722

File tree

83 files changed

+466
-275
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+466
-275
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@ on:
77
- 'integrated/**'
88
- 'stl-preview-head/**'
99
- 'stl-preview-base/**'
10+
pull_request:
11+
branches-ignore:
12+
- 'stl-preview-head/**'
13+
- 'stl-preview-base/**'
1014

1115
jobs:
1216
lint:
1317
timeout-minutes: 10
1418
name: lint
1519
runs-on: ${{ github.repository == 'stainless-sdks/gitpod-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
20+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
1621

1722
steps:
1823
- uses: actions/checkout@v4
@@ -28,6 +33,7 @@ jobs:
2833
timeout-minutes: 10
2934
name: test
3035
runs-on: ${{ github.repository == 'stainless-sdks/gitpod-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
36+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
3137
steps:
3238
- uses: actions/checkout@v4
3339

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.5.0"
2+
".": "0.6.0"
33
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 119
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-ca9a49ac7fbb63f55611fd7cd48a22a3ff8b38a797125c8513e891d9b7345550.yml
33
openapi_spec_hash: fd6ffbdfaefcc555e61ca1c565e05214
4-
config_hash: bb9d0a0bdadbee0985dd7c1e4f0e9e8a
4+
config_hash: 7fb76543ceafd4a116473f647f8d63b1

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
11
# Changelog
22

3+
## 0.6.0 (2025-09-25)
4+
5+
Full Changelog: [v0.5.0...v0.6.0](https://github.com/gitpod-io/gitpod-sdk-go/compare/v0.5.0...v0.6.0)
6+
7+
### Features
8+
9+
* **api:** gitpod -&gt; ona ([552d759](https://github.com/gitpod-io/gitpod-sdk-go/commit/552d759cc37edb71984b3a8d8dc740e999fa42a4))
10+
* **client:** add debug log helper ([80b9e2b](https://github.com/gitpod-io/gitpod-sdk-go/commit/80b9e2b14e06850bda8d96cb4bdbcc611d9684d8))
11+
* **client:** support optional json html escaping ([1b5fe8d](https://github.com/gitpod-io/gitpod-sdk-go/commit/1b5fe8d71198d7c27d346ced65b1a5916c1ca5f8))
12+
13+
14+
### Bug Fixes
15+
16+
* bugfix for setting JSON keys with special characters ([8cb7fa5](https://github.com/gitpod-io/gitpod-sdk-go/commit/8cb7fa5e315ee8407b030c7203e95b66003d9473))
17+
* **client:** process custom base url ahead of time ([aa5fbb8](https://github.com/gitpod-io/gitpod-sdk-go/commit/aa5fbb87c9b247fbe9ca6d74f72ccbd775d295b6))
18+
* don't try to deserialize as json when ResponseBodyInto is []byte ([52bb01f](https://github.com/gitpod-io/gitpod-sdk-go/commit/52bb01f2bc2aae5736c292faf09d98a515be2a08))
19+
* **pagination:** check if page data is empty in GetNextPage ([8d9d6fb](https://github.com/gitpod-io/gitpod-sdk-go/commit/8d9d6fb9ca5a3913d0400620dd18686290f8e57d))
20+
* use slices.Concat instead of sometimes modifying r.Options ([083789f](https://github.com/gitpod-io/gitpod-sdk-go/commit/083789f37af9f36fe39d0e45cb9e0ed087cf54cf))
21+
22+
23+
### Chores
24+
25+
* bump minimum go version to 1.22 ([92bbcb3](https://github.com/gitpod-io/gitpod-sdk-go/commit/92bbcb34c44340cfc9eb20416ac7f9c565462299))
26+
* **ci:** enable for pull requests ([2c731e3](https://github.com/gitpod-io/gitpod-sdk-go/commit/2c731e32d19595c013749cea2a7a8c50603aa0a4))
27+
* **ci:** only run for pushes and fork pull requests ([5214c86](https://github.com/gitpod-io/gitpod-sdk-go/commit/5214c8625e015da0f06ab2f817c96a31346475ec))
28+
* do not install brew dependencies in ./scripts/bootstrap by default ([99dff1a](https://github.com/gitpod-io/gitpod-sdk-go/commit/99dff1a321df7284bf84be3b4639ddbbbba3f588))
29+
* **internal:** fix lint script for tests ([076dd1d](https://github.com/gitpod-io/gitpod-sdk-go/commit/076dd1d2cef96adf0c5b21e4413387307f52971d))
30+
* **internal:** update comment in script ([b55d442](https://github.com/gitpod-io/gitpod-sdk-go/commit/b55d44229d14d7bc61b3bf18ed181689b280dfc8))
31+
* lint tests ([1bba107](https://github.com/gitpod-io/gitpod-sdk-go/commit/1bba1075657651b1ac7b261bbd9c2fcd3fc08fdd))
32+
* lint tests in subpackages ([7c466c2](https://github.com/gitpod-io/gitpod-sdk-go/commit/7c466c272c807ecda01497bd3565408e973cc177))
33+
* update @stainless-api/prism-cli to v5.15.0 ([b8acf38](https://github.com/gitpod-io/gitpod-sdk-go/commit/b8acf385df0d9b2ca8d2cf65635b6a2ab437e9c7))
34+
* update more docs for 1.22 ([d1761ab](https://github.com/gitpod-io/gitpod-sdk-go/commit/d1761aba3bc28977b3227bcdf8161099feeee04d))
35+
336
## 0.5.0 (2025-06-06)
437

538
Full Changelog: [v0.4.0...v0.5.0](https://github.com/gitpod-io/gitpod-sdk-go/compare/v0.4.0...v0.5.0)

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $ ./scripts/build
99

1010
This will install all the required dependencies and build the SDK.
1111

12-
You can also [install go 1.18+ manually](https://go.dev/doc/install).
12+
You can also [install go 1.22+ manually](https://go.dev/doc/install).
1313

1414
## Modifying/Adding code
1515

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<a href="https://pkg.go.dev/github.com/gitpod-io/gitpod-sdk-go"><img src="https://pkg.go.dev/badge/github.com/gitpod-io/gitpod-sdk-go.svg" alt="Go Reference"></a>
44

5-
The Gitpod Go library provides convenient access to the [Gitpod REST API](https://docs.gitpod.io)
5+
The Gitpod Go library provides convenient access to the [Gitpod REST API](https://docs.ona.com)
66
from applications written in Go.
77

88
It is generated with [Stainless](https://www.stainless.com/).
@@ -24,14 +24,14 @@ Or to pin the version:
2424
<!-- x-release-please-start-version -->
2525

2626
```sh
27-
go get -u 'github.com/gitpod-io/gitpod-sdk-go@v0.5.0'
27+
go get -u 'github.com/gitpod-io/gitpod-sdk-go@v0.6.0'
2828
```
2929

3030
<!-- x-release-please-end -->
3131

3232
## Requirements
3333

34-
This library requires Go 1.18+.
34+
This library requires Go 1.22+.
3535

3636
## Usage
3737

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ or products provided by Gitpod, please follow the respective company's security
2020

2121
### Gitpod Terms and Policies
2222

23-
Please contact dev-feedback@gitpod.com for any questions or concerns regarding the security of our services.
23+
Please contact dev-feedback@ona.com for any questions or concerns regarding the security of our services.
2424

2525
---
2626

account.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"context"
77
"net/http"
88
"net/url"
9+
"slices"
910
"time"
1011

1112
"github.com/gitpod-io/gitpod-sdk-go/internal/apijson"
@@ -55,7 +56,7 @@ func NewAccountService(opts ...option.RequestOption) (r *AccountService) {
5556
// {}
5657
// ```
5758
func (r *AccountService) Get(ctx context.Context, body AccountGetParams, opts ...option.RequestOption) (res *AccountGetResponse, err error) {
58-
opts = append(r.Options[:], opts...)
59+
opts = slices.Concat(r.Options, opts)
5960
path := "gitpod.v1.AccountService/GetAccount"
6061
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &res, opts...)
6162
return
@@ -81,7 +82,7 @@ func (r *AccountService) Get(ctx context.Context, body AccountGetParams, opts ..
8182
// accountId: "f53d2330-3795-4c5d-a1f3-453121af9c60"
8283
// ```
8384
func (r *AccountService) Delete(ctx context.Context, body AccountDeleteParams, opts ...option.RequestOption) (res *AccountDeleteResponse, err error) {
84-
opts = append(r.Options[:], opts...)
85+
opts = slices.Concat(r.Options, opts)
8586
path := "gitpod.v1.AccountService/DeleteAccount"
8687
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &res, opts...)
8788
return
@@ -114,7 +115,7 @@ func (r *AccountService) Delete(ctx context.Context, body AccountDeleteParams, o
114115
// returnTo: "https://gitpod.io/workspaces"
115116
// ```
116117
func (r *AccountService) GetSSOLoginURL(ctx context.Context, body AccountGetSSOLoginURLParams, opts ...option.RequestOption) (res *AccountGetSSOLoginURLResponse, err error) {
117-
opts = append(r.Options[:], opts...)
118+
opts = slices.Concat(r.Options, opts)
118119
path := "gitpod.v1.AccountService/GetSSOLoginURL"
119120
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &res, opts...)
120121
return
@@ -138,7 +139,7 @@ func (r *AccountService) GetSSOLoginURL(ctx context.Context, body AccountGetSSOL
138139
// {}
139140
// ```
140141
func (r *AccountService) ListJoinableOrganizations(ctx context.Context, params AccountListJoinableOrganizationsParams, opts ...option.RequestOption) (res *AccountListJoinableOrganizationsResponse, err error) {
141-
opts = append(r.Options[:], opts...)
142+
opts = slices.Concat(r.Options, opts)
142143
path := "gitpod.v1.AccountService/ListJoinableOrganizations"
143144
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, params, &res, opts...)
144145
return
@@ -175,7 +176,7 @@ func (r *AccountService) ListJoinableOrganizations(ctx context.Context, params A
175176
// ```
176177
func (r *AccountService) ListLoginProviders(ctx context.Context, params AccountListLoginProvidersParams, opts ...option.RequestOption) (res *pagination.LoginProvidersPage[LoginProvider], err error) {
177178
var raw *http.Response
178-
opts = append(r.Options[:], opts...)
179+
opts = slices.Concat(r.Options, opts)
179180
opts = append([]option.RequestOption{option.WithResponseInto(&raw)}, opts...)
180181
path := "gitpod.v1.AccountService/ListLoginProviders"
181182
cfg, err := requestconfig.NewRequestConfig(ctx, http.MethodPost, path, params, &res, opts...)

account_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
)
1515

1616
func TestAccountGetWithOptionalParams(t *testing.T) {
17-
t.Skip("skipped: tests are disabled for the time being")
17+
t.Skip("Prism tests are disabled")
1818
baseURL := "http://localhost:4010"
1919
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
2020
baseURL = envURL
@@ -39,7 +39,7 @@ func TestAccountGetWithOptionalParams(t *testing.T) {
3939
}
4040

4141
func TestAccountDelete(t *testing.T) {
42-
t.Skip("skipped: tests are disabled for the time being")
42+
t.Skip("Prism tests are disabled")
4343
baseURL := "http://localhost:4010"
4444
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
4545
baseURL = envURL
@@ -64,7 +64,7 @@ func TestAccountDelete(t *testing.T) {
6464
}
6565

6666
func TestAccountGetSSOLoginURLWithOptionalParams(t *testing.T) {
67-
t.Skip("skipped: tests are disabled for the time being")
67+
t.Skip("Prism tests are disabled")
6868
baseURL := "http://localhost:4010"
6969
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
7070
baseURL = envURL
@@ -90,7 +90,7 @@ func TestAccountGetSSOLoginURLWithOptionalParams(t *testing.T) {
9090
}
9191

9292
func TestAccountListJoinableOrganizationsWithOptionalParams(t *testing.T) {
93-
t.Skip("skipped: tests are disabled for the time being")
93+
t.Skip("Prism tests are disabled")
9494
baseURL := "http://localhost:4010"
9595
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
9696
baseURL = envURL
@@ -117,7 +117,7 @@ func TestAccountListJoinableOrganizationsWithOptionalParams(t *testing.T) {
117117
}
118118

119119
func TestAccountListLoginProvidersWithOptionalParams(t *testing.T) {
120-
t.Skip("skipped: tests are disabled for the time being")
120+
t.Skip("Prism tests are disabled")
121121
baseURL := "http://localhost:4010"
122122
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
123123
baseURL = envURL

client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"context"
77
"net/http"
88
"os"
9+
"slices"
910

1011
"github.com/gitpod-io/gitpod-sdk-go/internal/requestconfig"
1112
"github.com/gitpod-io/gitpod-sdk-go/option"
@@ -102,7 +103,7 @@ func NewClient(opts ...option.RequestOption) (r *Client) {
102103
// For even greater flexibility, see [option.WithResponseInto] and
103104
// [option.WithResponseBodyInto].
104105
func (r *Client) Execute(ctx context.Context, method string, path string, params interface{}, res interface{}, opts ...option.RequestOption) error {
105-
opts = append(r.Options, opts...)
106+
opts = slices.Concat(r.Options, opts)
106107
return requestconfig.ExecuteNewRequest(ctx, method, path, params, res, opts...)
107108
}
108109

0 commit comments

Comments
 (0)