Skip to content

Commit fe39102

Browse files
feat(api): use correct hashes
1 parent 540a1a0 commit fe39102

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 8
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-1dfe887b4f1c8b2d3d2d9f7d6576e4c5bbddc44e7807419144ac744158f1d27c.yml
3-
openapi_spec_hash: e5e5f3c9ed3dc298d10190484c98e48a
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-2d0de952cda743455598229e8f69c324bf65bbb908982b4fa3a36ff268b46a8d.yml
3+
openapi_spec_hash: 8016de730b9c2c26513bf624cd30a828
44
config_hash: 1bee02a0eeb902e1ea32aa032bc70f54

build.go

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,11 @@ func createBuildsListSubcommand() Subcommand {
239239
)
240240

241241
flagSet.Func(
242-
"config-commit",
242+
"config-hash",
243243
"",
244244
func(string string) error {
245245
var jsonErr error
246-
query, jsonErr = jsonSet(query, "config_commit", string)
246+
query, jsonErr = jsonSet(query, "config_hash", string)
247247
if jsonErr != nil {
248248
return jsonErr
249249
}
@@ -281,6 +281,19 @@ func createBuildsListSubcommand() Subcommand {
281281
},
282282
)
283283

284+
flagSet.Func(
285+
"spec-hash",
286+
"",
287+
func(string string) error {
288+
var jsonErr error
289+
query, jsonErr = jsonSet(query, "spec_hash", string)
290+
if jsonErr != nil {
291+
return jsonErr
292+
}
293+
return nil
294+
},
295+
)
296+
284297
return Subcommand{
285298
flagSet: flagSet,
286299
handle: func(client *stainlessv0.Client) {

completions.fish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ complete -c stainless-api-cli --no-files \
3131
-a "--build-id"
3232
complete -c stainless-api-cli --no-files \
3333
-n "__fish_seen_subcommand_from builds.list" \
34-
-a "--project --branch --config-commit --cursor --limit"
34+
-a "--project --branch --config-hash --cursor --limit --spec-hash"
3535
complete -c stainless-api-cli --no-files \
3636
-n "__fish_seen_subcommand_from build_target_outputs.retrieve" \
3737
-a "--build-id --target --type --output"

completions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ _main()
4444
flags="--build-id"
4545
;;
4646
builds.list)
47-
flags="--project --branch --config-commit --cursor --limit"
47+
flags="--project --branch --config-hash --cursor --limit --spec-hash"
4848
;;
4949
build_target_outputs.retrieve)
5050
flags="--build-id --target --type --output"

0 commit comments

Comments
 (0)