diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml new file mode 100644 index 0000000..30f4db9 --- /dev/null +++ b/.github/workflows/release-doctor.yml @@ -0,0 +1,17 @@ +name: Release Doctor +on: + pull_request: + workflow_dispatch: + +jobs: + release_doctor: + name: release doctor + runs-on: ubuntu-latest + if: github.repository == 'openlayer-ai/openlayer-go' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next') + + steps: + - uses: actions/checkout@v4 + + - name: Check release environment + run: | + bash ./scripts/check-release-environment diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..c476280 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.0.1-alpha.0" +} \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index de5e36c..68e192d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -34,7 +34,7 @@ To use a local version of this library from source in another project, edit the directive. This can be done through the CLI with the following: ```bash -go mod edit -replace github.com/stainless-sdks/openlayer-go=/path/to/openlayer-go +go mod edit -replace github.com/openlayer-ai/openlayer-go=/path/to/openlayer-go ``` ## Running tests diff --git a/README.md b/README.md index f9965f7..c0091cd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Openlayer Go API Library -Go Reference +Go Reference The Openlayer Go library provides convenient access to [the Openlayer REST API](https://openlayer.com/docs/api-reference/rest/overview) from applications written in Go. The full API of this library can be found in [api.md](api.md). @@ -9,18 +9,26 @@ It is generated with [Stainless](https://www.stainlessapi.com/). ## Installation + + ```go import ( - "github.com/stainless-sdks/openlayer-go" // imported as githubcomopenlayeraiopenlayergo + "github.com/openlayer-ai/openlayer-go" // imported as githubcomopenlayeraiopenlayergo ) ``` + + Or to pin the version: + + ```sh -go get -u 'github.com/stainless-sdks/openlayer-go@v0.0.1-alpha.0' +go get -u 'github.com/openlayer-ai/openlayer-go@v0.0.1-alpha.0' ``` + + ## Requirements This library requires Go 1.18+. @@ -36,8 +44,8 @@ import ( "context" "fmt" - "github.com/stainless-sdks/openlayer-go" - "github.com/stainless-sdks/openlayer-go/option" + "github.com/openlayer-ai/openlayer-go" + "github.com/openlayer-ai/openlayer-go/option" ) func main() { @@ -164,7 +172,7 @@ client.InferencePipelines.Data.Stream(context.TODO(), ..., ) ``` -See the [full list of request options](https://pkg.go.dev/github.com/stainless-sdks/openlayer-go/option). +See the [full list of request options](https://pkg.go.dev/github.com/openlayer-ai/openlayer-go/option). ### Pagination @@ -399,4 +407,4 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience. -We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/openlayer-go/issues) with questions, bugs, or suggestions. +We are keen for your feedback; please open an [issue](https://www.github.com/openlayer-ai/openlayer-go/issues) with questions, bugs, or suggestions. diff --git a/aliases.go b/aliases.go index 6c8e5bc..67f3312 100644 --- a/aliases.go +++ b/aliases.go @@ -3,7 +3,7 @@ package githubcomopenlayeraiopenlayergo import ( - "github.com/stainless-sdks/openlayer-go/internal/apierror" + "github.com/openlayer-ai/openlayer-go/internal/apierror" ) type Error = apierror.Error diff --git a/api.md b/api.md index 67af83a..91e970d 100644 --- a/api.md +++ b/api.md @@ -2,31 +2,31 @@ Response Types: -- githubcomopenlayeraiopenlayergo.ProjectListResponse +- githubcomopenlayeraiopenlayergo.ProjectListResponse Methods: -- client.Projects.List(ctx context.Context, query githubcomopenlayeraiopenlayergo.ProjectListParams) (githubcomopenlayeraiopenlayergo.ProjectListResponse, error) +- client.Projects.List(ctx context.Context, query githubcomopenlayeraiopenlayergo.ProjectListParams) (githubcomopenlayeraiopenlayergo.ProjectListResponse, error) ## Commits Response Types: -- githubcomopenlayeraiopenlayergo.ProjectCommitListResponse +- githubcomopenlayeraiopenlayergo.ProjectCommitListResponse Methods: -- client.Projects.Commits.List(ctx context.Context, id string, query githubcomopenlayeraiopenlayergo.ProjectCommitListParams) (githubcomopenlayeraiopenlayergo.ProjectCommitListResponse, error) +- client.Projects.Commits.List(ctx context.Context, id string, query githubcomopenlayeraiopenlayergo.ProjectCommitListParams) (githubcomopenlayeraiopenlayergo.ProjectCommitListResponse, error) ## InferencePipelines Response Types: -- githubcomopenlayeraiopenlayergo.ProjectInferencePipelineListResponse +- githubcomopenlayeraiopenlayergo.ProjectInferencePipelineListResponse Methods: -- client.Projects.InferencePipelines.List(ctx context.Context, id string, query githubcomopenlayeraiopenlayergo.ProjectInferencePipelineListParams) (githubcomopenlayeraiopenlayergo.ProjectInferencePipelineListResponse, error) +- client.Projects.InferencePipelines.List(ctx context.Context, id string, query githubcomopenlayeraiopenlayergo.ProjectInferencePipelineListParams) (githubcomopenlayeraiopenlayergo.ProjectInferencePipelineListResponse, error) # Commits @@ -34,11 +34,11 @@ Methods: Response Types: -- githubcomopenlayeraiopenlayergo.CommitTestResultListResponse +- githubcomopenlayeraiopenlayergo.CommitTestResultListResponse Methods: -- client.Commits.TestResults.List(ctx context.Context, id string, query githubcomopenlayeraiopenlayergo.CommitTestResultListParams) (githubcomopenlayeraiopenlayergo.CommitTestResultListResponse, error) +- client.Commits.TestResults.List(ctx context.Context, id string, query githubcomopenlayeraiopenlayergo.CommitTestResultListParams) (githubcomopenlayeraiopenlayergo.CommitTestResultListResponse, error) # InferencePipelines @@ -46,18 +46,18 @@ Methods: Response Types: -- githubcomopenlayeraiopenlayergo.InferencePipelineDataStreamResponse +- githubcomopenlayeraiopenlayergo.InferencePipelineDataStreamResponse Methods: -- client.InferencePipelines.Data.Stream(ctx context.Context, id string, body githubcomopenlayeraiopenlayergo.InferencePipelineDataStreamParams) (githubcomopenlayeraiopenlayergo.InferencePipelineDataStreamResponse, error) +- client.InferencePipelines.Data.Stream(ctx context.Context, id string, body githubcomopenlayeraiopenlayergo.InferencePipelineDataStreamParams) (githubcomopenlayeraiopenlayergo.InferencePipelineDataStreamResponse, error) ## TestResults Response Types: -- githubcomopenlayeraiopenlayergo.InferencePipelineTestResultListResponse +- githubcomopenlayeraiopenlayergo.InferencePipelineTestResultListResponse Methods: -- client.InferencePipelines.TestResults.List(ctx context.Context, id string, query githubcomopenlayeraiopenlayergo.InferencePipelineTestResultListParams) (githubcomopenlayeraiopenlayergo.InferencePipelineTestResultListResponse, error) +- client.InferencePipelines.TestResults.List(ctx context.Context, id string, query githubcomopenlayeraiopenlayergo.InferencePipelineTestResultListParams) (githubcomopenlayeraiopenlayergo.InferencePipelineTestResultListResponse, error) diff --git a/client.go b/client.go index 99ba2db..b6b96fd 100644 --- a/client.go +++ b/client.go @@ -7,8 +7,8 @@ import ( "net/http" "os" - "github.com/stainless-sdks/openlayer-go/internal/requestconfig" - "github.com/stainless-sdks/openlayer-go/option" + "github.com/openlayer-ai/openlayer-go/internal/requestconfig" + "github.com/openlayer-ai/openlayer-go/option" ) // Client creates a struct with services and top level methods that help with diff --git a/client_test.go b/client_test.go index bdcfb8a..646a4ce 100644 --- a/client_test.go +++ b/client_test.go @@ -9,9 +9,9 @@ import ( "testing" "time" - "github.com/stainless-sdks/openlayer-go" - "github.com/stainless-sdks/openlayer-go/internal" - "github.com/stainless-sdks/openlayer-go/option" + "github.com/openlayer-ai/openlayer-go" + "github.com/openlayer-ai/openlayer-go/internal" + "github.com/openlayer-ai/openlayer-go/option" ) type closureTransport struct { diff --git a/commit.go b/commit.go index 4e7bf76..fdcf6ce 100644 --- a/commit.go +++ b/commit.go @@ -3,7 +3,7 @@ package githubcomopenlayeraiopenlayergo import ( - "github.com/stainless-sdks/openlayer-go/option" + "github.com/openlayer-ai/openlayer-go/option" ) // CommitService contains methods and other services that help with interacting diff --git a/committestresult.go b/committestresult.go index b799d5a..0b366a8 100644 --- a/committestresult.go +++ b/committestresult.go @@ -11,12 +11,12 @@ import ( "reflect" "time" - "github.com/stainless-sdks/openlayer-go/internal/apijson" - "github.com/stainless-sdks/openlayer-go/internal/apiquery" - "github.com/stainless-sdks/openlayer-go/internal/param" - "github.com/stainless-sdks/openlayer-go/internal/requestconfig" - "github.com/stainless-sdks/openlayer-go/option" - "github.com/stainless-sdks/openlayer-go/shared" + "github.com/openlayer-ai/openlayer-go/internal/apijson" + "github.com/openlayer-ai/openlayer-go/internal/apiquery" + "github.com/openlayer-ai/openlayer-go/internal/param" + "github.com/openlayer-ai/openlayer-go/internal/requestconfig" + "github.com/openlayer-ai/openlayer-go/option" + "github.com/openlayer-ai/openlayer-go/shared" "github.com/tidwall/gjson" ) diff --git a/committestresult_test.go b/committestresult_test.go index 9d4be5f..f37036d 100644 --- a/committestresult_test.go +++ b/committestresult_test.go @@ -8,9 +8,9 @@ import ( "os" "testing" - "github.com/stainless-sdks/openlayer-go" - "github.com/stainless-sdks/openlayer-go/internal/testutil" - "github.com/stainless-sdks/openlayer-go/option" + "github.com/openlayer-ai/openlayer-go" + "github.com/openlayer-ai/openlayer-go/internal/testutil" + "github.com/openlayer-ai/openlayer-go/option" ) func TestCommitTestResultListWithOptionalParams(t *testing.T) { diff --git a/field.go b/field.go index c79fd67..893d64c 100644 --- a/field.go +++ b/field.go @@ -1,7 +1,7 @@ package githubcomopenlayeraiopenlayergo import ( - "github.com/stainless-sdks/openlayer-go/internal/param" + "github.com/openlayer-ai/openlayer-go/internal/param" "io" ) @@ -9,7 +9,7 @@ import ( // This helps specify null, zero values, and overrides, as well as normal values. // You can read more about this in our [README]. // -// [README]: https://pkg.go.dev/github.com/stainless-sdks/openlayer-go#readme-request-fields +// [README]: https://pkg.go.dev/github.com/openlayer-ai/openlayer-go#readme-request-fields func F[T any](value T) param.Field[T] { return param.Field[T]{Value: value, Present: true} } // Null is a param field helper which explicitly sends null to the API. diff --git a/go.mod b/go.mod index 9dd297b..302d799 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/stainless-sdks/openlayer-go +module github.com/openlayer-ai/openlayer-go go 1.19 diff --git a/inferencepipeline.go b/inferencepipeline.go index c3ff6df..ce3b2bc 100644 --- a/inferencepipeline.go +++ b/inferencepipeline.go @@ -3,7 +3,7 @@ package githubcomopenlayeraiopenlayergo import ( - "github.com/stainless-sdks/openlayer-go/option" + "github.com/openlayer-ai/openlayer-go/option" ) // InferencePipelineService contains methods and other services that help with diff --git a/inferencepipelinedata.go b/inferencepipelinedata.go index 454177f..26e1504 100644 --- a/inferencepipelinedata.go +++ b/inferencepipelinedata.go @@ -8,10 +8,10 @@ import ( "fmt" "net/http" - "github.com/stainless-sdks/openlayer-go/internal/apijson" - "github.com/stainless-sdks/openlayer-go/internal/param" - "github.com/stainless-sdks/openlayer-go/internal/requestconfig" - "github.com/stainless-sdks/openlayer-go/option" + "github.com/openlayer-ai/openlayer-go/internal/apijson" + "github.com/openlayer-ai/openlayer-go/internal/param" + "github.com/openlayer-ai/openlayer-go/internal/requestconfig" + "github.com/openlayer-ai/openlayer-go/option" ) // InferencePipelineDataService contains methods and other services that help with diff --git a/inferencepipelinedata_test.go b/inferencepipelinedata_test.go index 152e333..4827543 100644 --- a/inferencepipelinedata_test.go +++ b/inferencepipelinedata_test.go @@ -8,9 +8,9 @@ import ( "os" "testing" - "github.com/stainless-sdks/openlayer-go" - "github.com/stainless-sdks/openlayer-go/internal/testutil" - "github.com/stainless-sdks/openlayer-go/option" + "github.com/openlayer-ai/openlayer-go" + "github.com/openlayer-ai/openlayer-go/internal/testutil" + "github.com/openlayer-ai/openlayer-go/option" ) func TestInferencePipelineDataStreamWithOptionalParams(t *testing.T) { diff --git a/inferencepipelinetestresult.go b/inferencepipelinetestresult.go index 6da8298..c82fd7b 100644 --- a/inferencepipelinetestresult.go +++ b/inferencepipelinetestresult.go @@ -11,12 +11,12 @@ import ( "reflect" "time" - "github.com/stainless-sdks/openlayer-go/internal/apijson" - "github.com/stainless-sdks/openlayer-go/internal/apiquery" - "github.com/stainless-sdks/openlayer-go/internal/param" - "github.com/stainless-sdks/openlayer-go/internal/requestconfig" - "github.com/stainless-sdks/openlayer-go/option" - "github.com/stainless-sdks/openlayer-go/shared" + "github.com/openlayer-ai/openlayer-go/internal/apijson" + "github.com/openlayer-ai/openlayer-go/internal/apiquery" + "github.com/openlayer-ai/openlayer-go/internal/param" + "github.com/openlayer-ai/openlayer-go/internal/requestconfig" + "github.com/openlayer-ai/openlayer-go/option" + "github.com/openlayer-ai/openlayer-go/shared" "github.com/tidwall/gjson" ) diff --git a/inferencepipelinetestresult_test.go b/inferencepipelinetestresult_test.go index a05ee0c..0476e37 100644 --- a/inferencepipelinetestresult_test.go +++ b/inferencepipelinetestresult_test.go @@ -8,9 +8,9 @@ import ( "os" "testing" - "github.com/stainless-sdks/openlayer-go" - "github.com/stainless-sdks/openlayer-go/internal/testutil" - "github.com/stainless-sdks/openlayer-go/option" + "github.com/openlayer-ai/openlayer-go" + "github.com/openlayer-ai/openlayer-go/internal/testutil" + "github.com/openlayer-ai/openlayer-go/option" ) func TestInferencePipelineTestResultListWithOptionalParams(t *testing.T) { diff --git a/internal/apierror/apierror.go b/internal/apierror/apierror.go index cd1776e..ab9102b 100644 --- a/internal/apierror/apierror.go +++ b/internal/apierror/apierror.go @@ -7,7 +7,7 @@ import ( "net/http" "net/http/httputil" - "github.com/stainless-sdks/openlayer-go/internal/apijson" + "github.com/openlayer-ai/openlayer-go/internal/apijson" ) // Error represents an error that originates from the API, i.e. when a request is diff --git a/internal/apiform/encoder.go b/internal/apiform/encoder.go index 9482fb7..baaa704 100644 --- a/internal/apiform/encoder.go +++ b/internal/apiform/encoder.go @@ -13,7 +13,7 @@ import ( "sync" "time" - "github.com/stainless-sdks/openlayer-go/internal/param" + "github.com/openlayer-ai/openlayer-go/internal/param" ) var encoders sync.Map // map[encoderEntry]encoderFunc diff --git a/internal/apijson/encoder.go b/internal/apijson/encoder.go index c241640..f432fc3 100644 --- a/internal/apijson/encoder.go +++ b/internal/apijson/encoder.go @@ -12,7 +12,7 @@ import ( "github.com/tidwall/sjson" - "github.com/stainless-sdks/openlayer-go/internal/param" + "github.com/openlayer-ai/openlayer-go/internal/param" ) var encoders sync.Map // map[encoderEntry]encoderFunc diff --git a/internal/apijson/field_test.go b/internal/apijson/field_test.go index 72ef8da..85e76bb 100644 --- a/internal/apijson/field_test.go +++ b/internal/apijson/field_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/stainless-sdks/openlayer-go/internal/param" + "github.com/openlayer-ai/openlayer-go/internal/param" ) type Struct struct { diff --git a/internal/apiquery/encoder.go b/internal/apiquery/encoder.go index 1011bbf..762d735 100644 --- a/internal/apiquery/encoder.go +++ b/internal/apiquery/encoder.go @@ -9,7 +9,7 @@ import ( "sync" "time" - "github.com/stainless-sdks/openlayer-go/internal/param" + "github.com/openlayer-ai/openlayer-go/internal/param" ) var encoders sync.Map // map[reflect.Type]encoderFunc diff --git a/internal/requestconfig/requestconfig.go b/internal/requestconfig/requestconfig.go index f8629d1..ed77dbe 100644 --- a/internal/requestconfig/requestconfig.go +++ b/internal/requestconfig/requestconfig.go @@ -17,10 +17,10 @@ import ( "strings" "time" - "github.com/stainless-sdks/openlayer-go/internal" - "github.com/stainless-sdks/openlayer-go/internal/apierror" - "github.com/stainless-sdks/openlayer-go/internal/apiform" - "github.com/stainless-sdks/openlayer-go/internal/apiquery" + "github.com/openlayer-ai/openlayer-go/internal" + "github.com/openlayer-ai/openlayer-go/internal/apierror" + "github.com/openlayer-ai/openlayer-go/internal/apiform" + "github.com/openlayer-ai/openlayer-go/internal/apiquery" ) func getDefaultHeaders() map[string]string { diff --git a/internal/version.go b/internal/version.go index 1e49ee4..4ff68e4 100644 --- a/internal/version.go +++ b/internal/version.go @@ -2,4 +2,4 @@ package internal -const PackageVersion = "0.0.1-alpha.0" +const PackageVersion = "0.0.1-alpha.0" // x-release-please-version diff --git a/option/requestoption.go b/option/requestoption.go index 95db150..7863056 100644 --- a/option/requestoption.go +++ b/option/requestoption.go @@ -11,7 +11,7 @@ import ( "net/url" "time" - "github.com/stainless-sdks/openlayer-go/internal/requestconfig" + "github.com/openlayer-ai/openlayer-go/internal/requestconfig" "github.com/tidwall/sjson" ) @@ -19,7 +19,7 @@ import ( // which can be supplied to clients, services, and methods. You can read more about this functional // options pattern in our [README]. // -// [README]: https://pkg.go.dev/github.com/stainless-sdks/openlayer-go#readme-requestoptions +// [README]: https://pkg.go.dev/github.com/openlayer-ai/openlayer-go#readme-requestoptions type RequestOption = func(*requestconfig.RequestConfig) error // WithBaseURL returns a RequestOption that sets the BaseURL for the client. diff --git a/project.go b/project.go index 9e1ad1d..e1cb128 100644 --- a/project.go +++ b/project.go @@ -8,11 +8,11 @@ import ( "net/url" "time" - "github.com/stainless-sdks/openlayer-go/internal/apijson" - "github.com/stainless-sdks/openlayer-go/internal/apiquery" - "github.com/stainless-sdks/openlayer-go/internal/param" - "github.com/stainless-sdks/openlayer-go/internal/requestconfig" - "github.com/stainless-sdks/openlayer-go/option" + "github.com/openlayer-ai/openlayer-go/internal/apijson" + "github.com/openlayer-ai/openlayer-go/internal/apiquery" + "github.com/openlayer-ai/openlayer-go/internal/param" + "github.com/openlayer-ai/openlayer-go/internal/requestconfig" + "github.com/openlayer-ai/openlayer-go/option" ) // ProjectService contains methods and other services that help with interacting diff --git a/project_test.go b/project_test.go index f126f83..100e803 100644 --- a/project_test.go +++ b/project_test.go @@ -8,9 +8,9 @@ import ( "os" "testing" - "github.com/stainless-sdks/openlayer-go" - "github.com/stainless-sdks/openlayer-go/internal/testutil" - "github.com/stainless-sdks/openlayer-go/option" + "github.com/openlayer-ai/openlayer-go" + "github.com/openlayer-ai/openlayer-go/internal/testutil" + "github.com/openlayer-ai/openlayer-go/option" ) func TestProjectListWithOptionalParams(t *testing.T) { diff --git a/projectcommit.go b/projectcommit.go index 0b5623d..62a0afe 100644 --- a/projectcommit.go +++ b/projectcommit.go @@ -10,11 +10,11 @@ import ( "net/url" "time" - "github.com/stainless-sdks/openlayer-go/internal/apijson" - "github.com/stainless-sdks/openlayer-go/internal/apiquery" - "github.com/stainless-sdks/openlayer-go/internal/param" - "github.com/stainless-sdks/openlayer-go/internal/requestconfig" - "github.com/stainless-sdks/openlayer-go/option" + "github.com/openlayer-ai/openlayer-go/internal/apijson" + "github.com/openlayer-ai/openlayer-go/internal/apiquery" + "github.com/openlayer-ai/openlayer-go/internal/param" + "github.com/openlayer-ai/openlayer-go/internal/requestconfig" + "github.com/openlayer-ai/openlayer-go/option" ) // ProjectCommitService contains methods and other services that help with diff --git a/projectcommit_test.go b/projectcommit_test.go index ae776eb..56d6f85 100644 --- a/projectcommit_test.go +++ b/projectcommit_test.go @@ -8,9 +8,9 @@ import ( "os" "testing" - "github.com/stainless-sdks/openlayer-go" - "github.com/stainless-sdks/openlayer-go/internal/testutil" - "github.com/stainless-sdks/openlayer-go/option" + "github.com/openlayer-ai/openlayer-go" + "github.com/openlayer-ai/openlayer-go/internal/testutil" + "github.com/openlayer-ai/openlayer-go/option" ) func TestProjectCommitListWithOptionalParams(t *testing.T) { diff --git a/projectinferencepipeline.go b/projectinferencepipeline.go index ea810f2..3057f23 100644 --- a/projectinferencepipeline.go +++ b/projectinferencepipeline.go @@ -10,11 +10,11 @@ import ( "net/url" "time" - "github.com/stainless-sdks/openlayer-go/internal/apijson" - "github.com/stainless-sdks/openlayer-go/internal/apiquery" - "github.com/stainless-sdks/openlayer-go/internal/param" - "github.com/stainless-sdks/openlayer-go/internal/requestconfig" - "github.com/stainless-sdks/openlayer-go/option" + "github.com/openlayer-ai/openlayer-go/internal/apijson" + "github.com/openlayer-ai/openlayer-go/internal/apiquery" + "github.com/openlayer-ai/openlayer-go/internal/param" + "github.com/openlayer-ai/openlayer-go/internal/requestconfig" + "github.com/openlayer-ai/openlayer-go/option" ) // ProjectInferencePipelineService contains methods and other services that help diff --git a/projectinferencepipeline_test.go b/projectinferencepipeline_test.go index f981d4a..004113d 100644 --- a/projectinferencepipeline_test.go +++ b/projectinferencepipeline_test.go @@ -8,9 +8,9 @@ import ( "os" "testing" - "github.com/stainless-sdks/openlayer-go" - "github.com/stainless-sdks/openlayer-go/internal/testutil" - "github.com/stainless-sdks/openlayer-go/option" + "github.com/openlayer-ai/openlayer-go" + "github.com/openlayer-ai/openlayer-go/internal/testutil" + "github.com/openlayer-ai/openlayer-go/option" ) func TestProjectInferencePipelineListWithOptionalParams(t *testing.T) { diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..a38198e --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,67 @@ +{ + "packages": { + ".": {} + }, + "$schema": "https://raw.githubusercontent.com/stainless-api/release-please/main/schemas/config.json", + "include-v-in-tag": true, + "include-component-in-tag": false, + "versioning": "prerelease", + "prerelease": true, + "bump-minor-pre-major": true, + "bump-patch-for-minor-pre-major": false, + "pull-request-header": "Automated Release PR", + "pull-request-title-pattern": "release: ${version}", + "changelog-sections": [ + { + "type": "feat", + "section": "Features" + }, + { + "type": "fix", + "section": "Bug Fixes" + }, + { + "type": "perf", + "section": "Performance Improvements" + }, + { + "type": "revert", + "section": "Reverts" + }, + { + "type": "chore", + "section": "Chores" + }, + { + "type": "docs", + "section": "Documentation" + }, + { + "type": "style", + "section": "Styles" + }, + { + "type": "refactor", + "section": "Refactors" + }, + { + "type": "test", + "section": "Tests", + "hidden": true + }, + { + "type": "build", + "section": "Build System" + }, + { + "type": "ci", + "section": "Continuous Integration", + "hidden": true + } + ], + "release-type": "go", + "extra-files": [ + "internal/version.go", + "README.md" + ] +} \ No newline at end of file diff --git a/scripts/check-release-environment b/scripts/check-release-environment new file mode 100644 index 0000000..6ef15a5 --- /dev/null +++ b/scripts/check-release-environment @@ -0,0 +1,28 @@ +#!/usr/bin/env bash + +warnings=() +errors=() + +lenWarnings=${#warnings[@]} + +if [[ lenWarnings -gt 0 ]]; then + echo -e "Found the following warnings in the release environment:\n" + + for warning in "${warnings[@]}"; do + echo -e "- $warning\n" + done +fi + +lenErrors=${#errors[@]} + +if [[ lenErrors -gt 0 ]]; then + echo -e "Found the following errors in the release environment:\n" + + for error in "${errors[@]}"; do + echo -e "- $error\n" + done + + exit 1 +fi + +echo "The environment is ready to push releases!" diff --git a/usage_test.go b/usage_test.go index d36bde2..bc5d7dd 100644 --- a/usage_test.go +++ b/usage_test.go @@ -7,9 +7,9 @@ import ( "os" "testing" - "github.com/stainless-sdks/openlayer-go" - "github.com/stainless-sdks/openlayer-go/internal/testutil" - "github.com/stainless-sdks/openlayer-go/option" + "github.com/openlayer-ai/openlayer-go" + "github.com/openlayer-ai/openlayer-go/internal/testutil" + "github.com/openlayer-ai/openlayer-go/option" ) func TestUsage(t *testing.T) {