Skip to content

Commit 2f25166

Browse files
feat: change list endpoint
1 parent c0bb679 commit 2f25166

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
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-6cc6dbcccc2b281f55ced484ddf562c7615d5facb27db5599575e253d9a9a47c.yml
3-
openapi_spec_hash: d74c662cb71cffec14b86f666f53f7c4
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-ea892bd70a5969a30999da425467bf9291c44e8527610f37940c99e04e970744.yml
3+
openapi_spec_hash: e511d8f4716a56182b97d139eb89b68a
44
config_hash: dd7918597ce0745e0142bbe0c7ab2321

src/resources/build-target-outputs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ export namespace BuildTargetOutputRetrieveResponse {
4444
ref: string;
4545

4646
/**
47-
* Full repository name (owner/repo)
47+
* URL to git remote
4848
*/
49-
repo: string;
49+
url: string;
5050
}
5151
}
5252

src/resources/builds.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,15 @@ export interface BuildListParams {
268268
project: string;
269269

270270
/**
271-
* Branch name, defaults to "main"
271+
* Branch name
272272
*/
273273
branch?: string;
274274

275+
/**
276+
* Config commit SHA
277+
*/
278+
config_commit?: string;
279+
275280
/**
276281
* Pagination cursor from a previous response
277282
*/

tests/api-resources/builds.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ describe('resource builds', () => {
6161
const response = await client.builds.list({
6262
project: 'project',
6363
branch: 'branch',
64+
config_commit: 'config_commit',
6465
cursor: 'cursor',
6566
limit: 0,
6667
});

0 commit comments

Comments
 (0)