diff --git a/.github/workflows/create-releases.yml b/.github/workflows/create-releases.yml deleted file mode 100644 index 46af0974..00000000 --- a/.github/workflows/create-releases.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Create releases -on: - schedule: - - cron: '0 5 * * *' # every day at 5am UTC - push: - branches: - - main - -jobs: - release: - name: release - if: github.ref == 'refs/heads/main' && github.repository == 'stainless-api/stainless-api-typescript' - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - uses: stainless-api/trigger-release-please@v1 - id: release - with: - repo: ${{ github.event.repository.full_name }} - stainless-api-key: ${{ secrets.STAINLESS_API_KEY }} - - - name: Set up Node - if: ${{ steps.release.outputs.releases_created }} - uses: actions/setup-node@v3 - with: - node-version: '18' - - - name: Install dependencies - if: ${{ steps.release.outputs.releases_created }} - run: | - yarn install - diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml index 682122c3..ca1efac9 100644 --- a/.github/workflows/release-doctor.yml +++ b/.github/workflows/release-doctor.yml @@ -18,5 +18,4 @@ jobs: run: | bash ./bin/check-release-environment env: - STAINLESS_API_KEY: ${{ secrets.STAINLESS_API_KEY }} diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 67dcd73f..d7a87356 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.0.1-alpha.0" + ".": "0.1.0-alpha.1" } diff --git a/.stats.yml b/.stats.yml index dcb7fae8..6bb6654e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 8 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-6cc6dbcccc2b281f55ced484ddf562c7615d5facb27db5599575e253d9a9a47c.yml -openapi_spec_hash: d74c662cb71cffec14b86f666f53f7c4 -config_hash: dd7918597ce0745e0142bbe0c7ab2321 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-9c4cbbd20ce1628e48129ad8e871b729c3f774c5d1ff4cbc560fca81db611d93.yml +openapi_spec_hash: e511d8f4716a56182b97d139eb89b68a +config_hash: 1bee02a0eeb902e1ea32aa032bc70f54 diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..c02a909d --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,13 @@ +# Changelog + +## 0.1.0-alpha.1 (2025-04-21) + +Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/stainless-api/stainless-api-typescript/compare/v0.0.1-alpha.0...v0.1.0-alpha.1) + +### Features + +* add typescript ([c0bb679](https://github.com/stainless-api/stainless-api-typescript/commit/c0bb6791b7f2fca7c20d97ac00e879184a9b22e2)) +* add typescript ([d46df16](https://github.com/stainless-api/stainless-api-typescript/commit/d46df1603e09620ee06db15ee6dc05abd3d9193a)) +* **api:** fix enum name conflict maybe ([e31eca9](https://github.com/stainless-api/stainless-api-typescript/commit/e31eca9fb75f5ffbe28adc0939233cde18ee3d13)) +* **api:** remove discriminator thing ([f5da06c](https://github.com/stainless-api/stainless-api-typescript/commit/f5da06c1934137696b29fe5a708efb4fbffb2985)) +* change list endpoint ([2f25166](https://github.com/stainless-api/stainless-api-typescript/commit/2f2516691557541a6bea1cc73a71945054325ebf)) diff --git a/bin/check-release-environment b/bin/check-release-environment index a0e7396c..6b43775a 100644 --- a/bin/check-release-environment +++ b/bin/check-release-environment @@ -2,10 +2,6 @@ errors=() -if [ -z "${STAINLESS_API_KEY}" ]; then - errors+=("The STAINLESS_API_KEY secret has not been set. Please contact Stainless for an API key & set it in your organization secrets on GitHub.") -fi - lenErrors=${#errors[@]} if [[ lenErrors -gt 0 ]]; then diff --git a/package.json b/package.json index f917f99e..82ab06a2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stainless-v0", - "version": "0.0.1-alpha.0", + "version": "0.1.0-alpha.1", "description": "The official TypeScript library for the Stainless V0 API", "author": "Stainless V0 <>", "types": "dist/index.d.ts", diff --git a/src/resources/build-target-outputs.ts b/src/resources/build-target-outputs.ts index 60e8dc66..684a9e9d 100644 --- a/src/resources/build-target-outputs.ts +++ b/src/resources/build-target-outputs.ts @@ -44,9 +44,9 @@ export namespace BuildTargetOutputRetrieveResponse { ref: string; /** - * Full repository name (owner/repo) + * URL to git remote */ - repo: string; + url: string; } } diff --git a/src/resources/builds.ts b/src/resources/builds.ts index 292a6a9c..ceb7598b 100644 --- a/src/resources/builds.ts +++ b/src/resources/builds.ts @@ -97,16 +97,20 @@ export namespace BuildTarget { commit: Completed.Commit | null; conclusion: + | 'success' + | 'failure' + | 'skipped' + | 'cancelled' + | 'action_required' + | 'neutral' + | 'timed_out' | 'error' | 'warning' | 'note' - | 'success' | 'merge_conflict' | 'upstream_merge_conflict' | 'fatal' | 'payment_required' - | 'cancelled' - | 'timed_out' | 'noop' | 'version_bump'; @@ -173,7 +177,16 @@ export namespace BuildTarget { | 'cancelled' | 'action_required' | 'neutral' - | 'timed_out'; + | 'timed_out' + | 'error' + | 'warning' + | 'note' + | 'merge_conflict' + | 'upstream_merge_conflict' + | 'fatal' + | 'payment_required' + | 'noop' + | 'version_bump'; } } @@ -204,7 +217,16 @@ export namespace BuildTarget { | 'cancelled' | 'action_required' | 'neutral' - | 'timed_out'; + | 'timed_out' + | 'error' + | 'warning' + | 'note' + | 'merge_conflict' + | 'upstream_merge_conflict' + | 'fatal' + | 'payment_required' + | 'noop' + | 'version_bump'; } } } @@ -268,10 +290,15 @@ export interface BuildListParams { project: string; /** - * Branch name, defaults to "main" + * Branch name */ branch?: string; + /** + * Config commit SHA + */ + config_commit?: string; + /** * Pagination cursor from a previous response */ diff --git a/src/version.ts b/src/version.ts index db692bc9..b0bfd9e7 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.0.1-alpha.0'; // x-release-please-version +export const VERSION = '0.1.0-alpha.1'; // x-release-please-version diff --git a/tests/api-resources/builds.test.ts b/tests/api-resources/builds.test.ts index 00f0dc2f..fbbe6411 100644 --- a/tests/api-resources/builds.test.ts +++ b/tests/api-resources/builds.test.ts @@ -61,6 +61,7 @@ describe('resource builds', () => { const response = await client.builds.list({ project: 'project', branch: 'branch', + config_commit: 'config_commit', cursor: 'cursor', limit: 0, });