Skip to content

Commit 0f6a73e

Browse files
authored
Merge pull request #75 from kernel/release-please--branches--main--changes--next
release: 0.36.1
2 parents 684085c + 1d9c140 commit 0f6a73e

7 files changed

Lines changed: 21 additions & 10 deletions

File tree

.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.36.0"
2+
".": "0.36.1"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 101
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-bbc3dbdd0410eb315cfaeb21aad9f85e4a7f92ac55526ebb702a8bee343c2ab7.yml
3-
openapi_spec_hash: 60a5134c45a8f3a217e128d4e3335cae
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-ea5c9cb25c29fa5a8758bbf8732eb306783bb6f13b4df29bf1ad5ad3cb32da1e.yml
3+
openapi_spec_hash: 597031840469b011f5cf22a4d8b9d750
44
config_hash: 147340811dd6fbb9c2d80515a7e31f9a

CHANGELOG.md

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

3+
## 0.36.1 (2026-02-21)
4+
5+
Full Changelog: [v0.36.0...v0.36.1](https://github.com/kernel/kernel-go-sdk/compare/v0.36.0...v0.36.1)
6+
7+
### Features
8+
9+
* Add version filter to GET /deployments endpoint ([cebd474](https://github.com/kernel/kernel-go-sdk/commit/cebd474525fbafe8b5897f92cc6d8b258f360626))
10+
311
## 0.36.0 (2026-02-21)
412

513
Full Changelog: [v0.35.0...v0.36.0](https://github.com/kernel/kernel-go-sdk/compare/v0.35.0...v0.36.0)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Or to pin the version:
2828
<!-- x-release-please-start-version -->
2929

3030
```sh
31-
go get -u 'github.com/kernel/kernel-go-sdk@v0.36.0'
31+
go get -u 'github.com/kernel/kernel-go-sdk@v0.36.1'
3232
```
3333

3434
<!-- x-release-please-end -->

deployment.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func (r *DeploymentService) Get(ctx context.Context, id string, opts ...option.R
6767
return
6868
}
6969

70-
// List deployments. Optionally filter by application name.
70+
// List deployments. Optionally filter by application name and version.
7171
func (r *DeploymentService) List(ctx context.Context, query DeploymentListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[DeploymentListResponse], err error) {
7272
var raw *http.Response
7373
opts = slices.Concat(r.Options, opts)
@@ -85,7 +85,7 @@ func (r *DeploymentService) List(ctx context.Context, query DeploymentListParams
8585
return res, nil
8686
}
8787

88-
// List deployments. Optionally filter by application name.
88+
// List deployments. Optionally filter by application name and version.
8989
func (r *DeploymentService) ListAutoPaging(ctx context.Context, query DeploymentListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[DeploymentListResponse] {
9090
return pagination.NewOffsetPaginationAutoPager(r.List(ctx, query, opts...))
9191
}
@@ -572,6 +572,8 @@ func init() {
572572
type DeploymentListParams struct {
573573
// Filter results by application name.
574574
AppName param.Opt[string] `query:"app_name,omitzero" json:"-"`
575+
// Filter results by application version. Requires app_name to be set.
576+
AppVersion param.Opt[string] `query:"app_version,omitzero" json:"-"`
575577
// Limit the number of deployments to return.
576578
Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
577579
// Offset the number of deployments to return.

deployment_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,10 @@ func TestDeploymentListWithOptionalParams(t *testing.T) {
9595
option.WithAPIKey("My API Key"),
9696
)
9797
_, err := client.Deployments.List(context.TODO(), kernel.DeploymentListParams{
98-
AppName: kernel.String("app_name"),
99-
Limit: kernel.Int(1),
100-
Offset: kernel.Int(0),
98+
AppName: kernel.String("app_name"),
99+
AppVersion: kernel.String("app_version"),
100+
Limit: kernel.Int(1),
101+
Offset: kernel.Int(0),
101102
})
102103
if err != nil {
103104
var apierr *kernel.Error

internal/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
package internal
44

5-
const PackageVersion = "0.36.0" // x-release-please-version
5+
const PackageVersion = "0.36.1" // x-release-please-version

0 commit comments

Comments
 (0)