Skip to content

Commit 7452842

Browse files
authored
Merge pull request #6 from stainless-api/release-please--branches--main--changes--next
release: 0.1.0-alpha.1
2 parents ec4f098 + 5b48010 commit 7452842

28 files changed

+1176
-642
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
on:
3+
push:
4+
branches-ignore:
5+
- 'generated'
6+
- 'codegen/**'
7+
- 'integrated/**'
8+
- 'stl-preview-head/**'
9+
- 'stl-preview-base/**'
10+
11+
jobs:
12+
lint:
13+
timeout-minutes: 10
14+
name: lint
15+
runs-on: ${{ github.repository == 'stainless-sdks/stainless-v0-cli' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Setup go
21+
uses: actions/setup-go@v5
22+
with:
23+
go-version-file: ./go.mod
24+
25+
- name: Run lints
26+
run: ./scripts/lint
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Publish Release
3+
permissions:
4+
contents: write
5+
6+
concurrency:
7+
group: publish
8+
9+
on:
10+
push:
11+
tags:
12+
- "v*"
13+
jobs:
14+
goreleaser:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
- name: Set up Go
22+
uses: actions/setup-go@v5
23+
with:
24+
go-version-file: "go.mod"
25+
- name: Run GoReleaser
26+
uses: goreleaser/[email protected]
27+
with:
28+
version: latest
29+
args: release --clean
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Release Doctor
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
8+
jobs:
9+
release_doctor:
10+
name: release doctor
11+
runs-on: ubuntu-latest
12+
if: github.repository == 'stainless-api/stainless-api-cli' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Check release environment
18+
run: |
19+
bash ./bin/check-release-environment

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
.prism.log
22
dist/
3-
stainless-v0-cli
3+
stainless-api-cli

.goreleaser.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
project_name: stainless-api-cli
2+
version: 2
3+
4+
builds:
5+
- id: macos
6+
goos: [darwin]
7+
goarch: [amd64, arm64]
8+
binary: '{{ .ProjectName }}'
9+
mod_timestamp: "{{ .CommitTimestamp }}"
10+
ldflags:
11+
- "-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}"
12+
13+
- id: linux
14+
goos: [linux]
15+
goarch: ['386', arm, amd64, arm64]
16+
env:
17+
- CGO_ENABLED=0
18+
binary: '{{ .ProjectName }}'
19+
mod_timestamp: "{{ .CommitTimestamp }}"
20+
ldflags:
21+
- "-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}"
22+
23+
- id: windows
24+
goos: [windows]
25+
goarch: ['386', amd64, arm64]
26+
binary: '{{ .ProjectName }}'
27+
mod_timestamp: "{{ .CommitTimestamp }}"
28+
ldflags:
29+
- "-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}"
30+
31+
archives:
32+
- id: linux-archive
33+
ids: [linux]
34+
name_template: '{{ .ProjectName }}_{{ .Version }}_linux_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
35+
wrap_in_directory: true
36+
formats: [tar.gz]
37+
- id: macos-archive
38+
ids: [macos]
39+
name_template: '{{ .ProjectName }}_{{ .Version }}_macos_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
40+
wrap_in_directory: true
41+
formats: [zip]
42+
- id: windows-archive
43+
ids: [windows]
44+
name_template: '{{ .ProjectName }}_{{ .Version }}_windows_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
45+
wrap_in_directory: false
46+
formats: [zip]
47+
48+
snapshot:
49+
version_template: "{{ .Tag }}-next"
50+
51+
nfpms:
52+
- license: Apache-2.0
53+
maintainer:
54+
bindir: /usr
55+
formats:
56+
- deb
57+
- rpm

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.1.0-alpha.1"
3+
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 6
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-76dbc699edc35f7b97378d746e3e72be3e849c60373fdb27054c61f4d1df3490.yml
3-
openapi_spec_hash: 1645053eb0d0cb91d4c799680e860293
4-
config_hash: f7864ea9299ef30788a1f8a76b695360
1+
configured_endpoints: 14
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-5005d23980f589ea52eb1678ed620336b7c1172e3b1493a5c819c6b00f22203e.yml
3+
openapi_spec_hash: 2a29f55c69490ab4d0ee5eb32727ab46
4+
config_hash: 66be21d9e622533a4b22a18501a02005

CHANGELOG.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Changelog
2+
3+
## 0.1.0-alpha.1 (2025-04-30)
4+
5+
Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/stainless-api/stainless-api-cli/compare/v0.0.1-alpha.0...v0.1.0-alpha.1)
6+
7+
### Features
8+
9+
* add typescript ([7a35228](https://github.com/stainless-api/stainless-api-cli/commit/7a3522871cb71d0511e8066d8c7052731d0fe56a))
10+
* **api:** configs ([24361de](https://github.com/stainless-api/stainless-api-cli/commit/24361de65a1e8f72b1f7fda391e158f6737c7691))
11+
* **api:** fix enum name conflict maybe ([e70ad16](https://github.com/stainless-api/stainless-api-cli/commit/e70ad1613201ddcbc500c372f904fd5dd6b33670))
12+
* **api:** manual updates ([640c152](https://github.com/stainless-api/stainless-api-cli/commit/640c152a0fa8a2de1d8f90e6fe7588a73f8dd06b))
13+
* **api:** manual updates ([d7fa9ae](https://github.com/stainless-api/stainless-api-cli/commit/d7fa9ae3231e881206843cd2044c1657f48c3455))
14+
* **api:** manual updates ([aeaafee](https://github.com/stainless-api/stainless-api-cli/commit/aeaafee818795dbb22170c3eb778aa6a88ec3815))
15+
* **api:** manual updates ([c694b82](https://github.com/stainless-api/stainless-api-cli/commit/c694b821b6720263e512c35d9e6c2fe71cb504f5))
16+
* **api:** manual updates ([79ceae1](https://github.com/stainless-api/stainless-api-cli/commit/79ceae11587809ff66d89987cb43767890976727))
17+
* **api:** manual updates ([c654f3d](https://github.com/stainless-api/stainless-api-cli/commit/c654f3dd0ebc143f724d7456920115e7eeff3543))
18+
* **api:** manual updates ([69fd666](https://github.com/stainless-api/stainless-api-cli/commit/69fd666912c10edf82d9fac0b9a34e8a8201c0fd))
19+
* **api:** manual updates ([514327b](https://github.com/stainless-api/stainless-api-cli/commit/514327b63421852a37eb64177e57987f64580620))
20+
* **api:** manual updates ([1cc704d](https://github.com/stainless-api/stainless-api-cli/commit/1cc704d81c9bde5de6d4a0049d58868701919ec6))
21+
* **api:** manual updates ([dfc8fa2](https://github.com/stainless-api/stainless-api-cli/commit/dfc8fa2e632544cf63d50ec02143ffe20cf30773))
22+
* **api:** manual updates ([611beb0](https://github.com/stainless-api/stainless-api-cli/commit/611beb0f2fcff7fc46609864b0b51a102a825aad))
23+
* **api:** manual updates ([0aeaa78](https://github.com/stainless-api/stainless-api-cli/commit/0aeaa78a2e8f59e8466cd0df451ee551245b4ef4))
24+
* **api:** manual updates ([bc90b96](https://github.com/stainless-api/stainless-api-cli/commit/bc90b965b2df3c688bad5cef93cda86aaf228edf))
25+
* **api:** manual updates ([15bda00](https://github.com/stainless-api/stainless-api-cli/commit/15bda00e341f32b2fa2a3ac059c311c014a17863))
26+
* **api:** manual updates ([f598f10](https://github.com/stainless-api/stainless-api-cli/commit/f598f10545abbedca7db1a8e59c19a21f3393c44))
27+
* **api:** manual updates ([947c01a](https://github.com/stainless-api/stainless-api-cli/commit/947c01ac614c6a0694cad2980150e9aaa6b8b76d))
28+
* **api:** manual updates ([676ed23](https://github.com/stainless-api/stainless-api-cli/commit/676ed23f267362057b36797fed487db9beea3e26))
29+
* **api:** parent build id ([540a1a0](https://github.com/stainless-api/stainless-api-cli/commit/540a1a06aef7294860f53326accc85379695b092))
30+
* **api:** remove discriminator thing ([b87d671](https://github.com/stainless-api/stainless-api-cli/commit/b87d671eb9cb433d2e25e1e642bd65101f5c5012))
31+
* **api:** rename api key ([b7e9c79](https://github.com/stainless-api/stainless-api-cli/commit/b7e9c790166bea892b438d58fe1c09a3fc9158ac))
32+
* **api:** update via SDK Studio ([57b41f3](https://github.com/stainless-api/stainless-api-cli/commit/57b41f3587fb39b81719ec363c9c8a559c45eb70))
33+
* **api:** update via SDK Studio ([8e817cc](https://github.com/stainless-api/stainless-api-cli/commit/8e817cc694231314fcd5f959497eeaade9819df5))
34+
* **api:** update via SDK Studio ([8e4f061](https://github.com/stainless-api/stainless-api-cli/commit/8e4f061fa25a4d1847fc0025bc9dfb28fdc12f8a))
35+
* **api:** update via SDK Studio ([#2](https://github.com/stainless-api/stainless-api-cli/issues/2)) ([10296a9](https://github.com/stainless-api/stainless-api-cli/commit/10296a982896077aa6923a67e697ba984177ef79))
36+
* **api:** update via SDK Studio ([#4](https://github.com/stainless-api/stainless-api-cli/issues/4)) ([0380cc7](https://github.com/stainless-api/stainless-api-cli/commit/0380cc735be7df8284ab846dc1e78ab7d56f7942))
37+
* **api:** use correct hashes ([fe39102](https://github.com/stainless-api/stainless-api-cli/commit/fe391029e2b2cfd7f56fbdeb7c6e3fe4b5efa86c))
38+
* change list endpoint ([9943696](https://github.com/stainless-api/stainless-api-cli/commit/99436969643e83cf65d2cb9d06bf696225d0bc01))
39+
* use urfave/cli library ([b1ae8e7](https://github.com/stainless-api/stainless-api-cli/commit/b1ae8e7ede73da7327e4b6764503e9152175923e))
40+
41+
42+
### Bug Fixes
43+
44+
* don't overwrite headers ([#5](https://github.com/stainless-api/stainless-api-cli/issues/5)) ([2680134](https://github.com/stainless-api/stainless-api-cli/commit/2680134b981409ec9bdb5acaed2cf57c7cfb61be))
45+
46+
47+
### Chores
48+
49+
* configure releases ([af7fad0](https://github.com/stainless-api/stainless-api-cli/commit/af7fad0fe84224aac40b03196412c3e285c57769))
50+
* go live ([#1](https://github.com/stainless-api/stainless-api-cli/issues/1)) ([c9feb17](https://github.com/stainless-api/stainless-api-cli/commit/c9feb179487869081f1632c06f437220e74c5d5d))
51+
* **internal:** codegen related update ([ec4f098](https://github.com/stainless-api/stainless-api-cli/commit/ec4f098eb4bb7a177acf30900dabc3b38ce08ca4))
52+
* **internal:** codegen related update ([5d4d480](https://github.com/stainless-api/stainless-api-cli/commit/5d4d480936c1921673e32f21e92bcfaa63944913))
53+
54+
55+
### Refactors
56+
57+
* split up completion target into multiple lines ([#3](https://github.com/stainless-api/stainless-api-cli/issues/3)) ([caa5a30](https://github.com/stainless-api/stainless-api-cli/commit/caa5a300c058762fababf68a5082c43c53f65b32))

SECURITY.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ before making any information public.
1818
If you encounter security issues that are not directly related to SDKs but pertain to the services
1919
or products provided by Stainless V0 please follow the respective company's security reporting guidelines.
2020

21-
### Stainless V0 Terms and Policies
22-
23-
Please contact [email protected] for any questions or concerns regarding security of our services.
24-
2521
---
2622

2723
Thank you for helping us keep the SDKs and systems they interact with secure.

bin/check-release-environment

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env bash
2+
3+
errors=()
4+
5+
lenErrors=${#errors[@]}
6+
7+
if [[ lenErrors -gt 0 ]]; then
8+
echo -e "Found the following errors in the release environment:\n"
9+
10+
for error in "${errors[@]}"; do
11+
echo -e "- $error\n"
12+
done
13+
14+
exit 1
15+
fi
16+
17+
echo "The environment is ready to push releases!"

0 commit comments

Comments
 (0)